Skip to content

Commit 11d1409

Browse files
committed
Format else clauses
1 parent ae1983b commit 11d1409

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Jakefile.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ var thirdParty = "ThirdPartyNoticeText.txt";
2929
var nodeModulesPathPrefix = path.resolve("./node_modules/.bin/") + path.delimiter;
3030
if (process.env.path !== undefined) {
3131
process.env.path = nodeModulesPathPrefix + process.env.path;
32-
} else if (process.env.PATH !== undefined) {
32+
}
33+
else if (process.env.PATH !== undefined) {
3334
process.env.PATH = nodeModulesPathPrefix + process.env.PATH;
3435
}
3536

@@ -312,13 +313,15 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts
312313
if (useDebugMode) {
313314
if (opts.inlineSourceMap) {
314315
options += " --inlineSourceMap --inlineSources";
315-
} else {
316+
}
317+
else {
316318
options += " -sourcemap";
317319
if (!opts.noMapRoot) {
318320
options += " -mapRoot file:///" + path.resolve(path.dirname(outFile));
319321
}
320322
}
321-
} else {
323+
}
324+
else {
322325
options += " --newLine LF";
323326
}
324327

@@ -748,7 +751,8 @@ function exec(cmd, completeHandler, errorHandler) {
748751
ex.addListener("error", function (e, status) {
749752
if (errorHandler) {
750753
errorHandler(e, status);
751-
} else {
754+
}
755+
else {
752756
fail("Process exited with code " + status);
753757
}
754758
});
@@ -1021,7 +1025,8 @@ function acceptBaseline(sourceFolder, targetFolder) {
10211025
if (filename.substr(filename.length - deleteEnding.length) === deleteEnding) {
10221026
filename = filename.substr(0, filename.length - deleteEnding.length);
10231027
fs.unlinkSync(path.join(targetFolder, filename));
1024-
} else {
1028+
}
1029+
else {
10251030
var target = path.join(targetFolder, filename);
10261031
if (fs.existsSync(target)) {
10271032
fs.unlinkSync(target);

0 commit comments

Comments
 (0)