mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:27:58 +01:00
remove some unnecessary guard clauses
This commit is contained in:
@@ -187,12 +187,7 @@ function Commands()//{{{
|
||||
|
||||
function addDefaultCommand(command)
|
||||
{
|
||||
if (!command)
|
||||
return false;
|
||||
|
||||
ex_commands.push(command);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function commandsIterator()
|
||||
|
||||
@@ -66,14 +66,10 @@ function Mappings()//{{{
|
||||
|
||||
function addDefaultMap(map)
|
||||
{
|
||||
if (!map)
|
||||
return false;
|
||||
|
||||
if (!main[map.mode])
|
||||
main[map.mode] = [];
|
||||
|
||||
main[map.mode].push(map);
|
||||
return true;
|
||||
}
|
||||
|
||||
function getFrom(mode, cmd, stack)
|
||||
|
||||
Reference in New Issue
Block a user