Code style: Fix ESLint "newline-before-return" errors

Part of #407.
redux
David Majda 8 years ago
parent 2cb94adba7
commit 8471b621a8

@ -68,6 +68,7 @@ $("#run").click(() => {
if (isNaN(runCount) || runCount <= 0) {
alert("Number of runs must be a positive integer.");
return;
}

@ -13,9 +13,11 @@ let fs = require("fs");
function dup(text, count) {
let result = "";
for (let i = 1; i <= count; i++) {
result += text;
}
return result;
}
@ -29,6 +31,7 @@ function padRight(text, length) {
function center(text, length) {
let padLength = (length - text.length) / 2;
return dup(" ", Math.floor(padLength))
+ text
+ dup(" ", Math.ceil(padLength));

Loading…
Cancel
Save