mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:57:58 +01:00
Remove silly guard clause from addCommand.
This commit is contained in:
@@ -372,9 +372,6 @@ function Commands() //{{{
|
||||
|
||||
function addCommand(command, isUserCommand, replace)
|
||||
{
|
||||
if (!command) // XXX
|
||||
return false;
|
||||
|
||||
if (exCommands.some(function (c) c.hasName(command.name)))
|
||||
{
|
||||
if (isUserCommand && replace)
|
||||
|
||||
Reference in New Issue
Block a user