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