Remove extra indentation

redux
David Majda 8 years ago
parent 7ca229a432
commit ec3f7f5bb0

@ -255,13 +255,13 @@ while (args.length > 0 && isOption(args[0])) {
if (Object.keys(options.dependencies).length > 0) { if (Object.keys(options.dependencies).length > 0) {
if (options.format !== "amd" && options.format !== "commonjs" && options.format !== "umd") { if (options.format !== "amd" && options.format !== "commonjs" && options.format !== "umd") {
abort("Can't use the -d/--dependency option with the \"" + options.format + "\" module format."); abort("Can't use the -d/--dependency option with the \"" + options.format + "\" module format.");
} }
} }
if (options.exportVar !== null) { if (options.exportVar !== null) {
if (options.format !== "globals" && options.format !== "umd") { if (options.format !== "globals" && options.format !== "umd") {
abort("Can't use the -e/--export-var option with the \"" + options.format + "\" module format."); abort("Can't use the -e/--export-var option with the \"" + options.format + "\" module format.");
} }
} }

@ -100,21 +100,21 @@ function generateJS(ast, options) {
if (options.trace) { if (options.trace) {
parts.push([ parts.push([
"", "",
"if (" + resultCode + " !== peg$FAILED) {", "if (" + resultCode + " !== peg$FAILED) {",
" peg$tracer.trace({", " peg$tracer.trace({",
" type: \"rule.match\",", " type: \"rule.match\",",
" rule: " + ruleNameCode + ",", " rule: " + ruleNameCode + ",",
" result: " + resultCode + ",", " result: " + resultCode + ",",
" location: peg$computeLocation(startPos, peg$currPos)", " location: peg$computeLocation(startPos, peg$currPos)",
" });", " });",
"} else {", "} else {",
" peg$tracer.trace({", " peg$tracer.trace({",
" type: \"rule.fail\",", " type: \"rule.fail\",",
" rule: " + ruleNameCode + ",", " rule: " + ruleNameCode + ",",
" location: peg$computeLocation(startPos, startPos)", " location: peg$computeLocation(startPos, startPos)",
" });", " });",
"}" "}"
].join("\n")); ].join("\n"));
} }

Loading…
Cancel
Save