1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 14:15:47 +01:00

Change multiline error message guard clauses to single line formatting.

Also apply similar formattng fixes to conditional blocks as per
standard.
This commit is contained in:
Doug Kearns
2009-05-22 02:36:35 +10:00
parent 4c4295029e
commit 26dabbfd0d
20 changed files with 70 additions and 400 deletions

View File

@@ -557,7 +557,7 @@ liberator.registerObserver("load_commands", function ()
if (scheme == "default")
highlight.clear();
else if (!io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]))
return liberator.echoerr("E185: Cannot find color scheme " + scheme);
return void liberator.echoerr("E185: Cannot find color scheme " + scheme);
autocommands.trigger("ColorScheme", { name: scheme });
},
{
@@ -605,9 +605,7 @@ liberator.registerObserver("load_commands", function ()
{
let compl = [];
if (args.completeArg == 0)
{
styles.completeSite(context, content);
}
else if (args.completeArg == 1)
{
let sheet = styles.get(false, args["-name"]);