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