mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:52:31 +02:00
Remove silly guard clause from addCommand.
This commit is contained in:
1 parent
ce120a7f9d
commit
73759f78f8
1 file changed
-3
@@ -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