eslint: change no-else-return to error and fix violations

This commit is contained in:
AZtheAsian
2016-12-02 13:34:35 -07:00
committed by Tim Abbott
parent d8636980ae
commit 9c0ebc7359
23 changed files with 108 additions and 149 deletions

View File

@@ -89,27 +89,26 @@ exports.process_fenced_code = function (content) {
handler_stack.pop();
}
};
} else {
return {
handle_line: function (line) {
if (line === fence) {
this.done();
} else {
lines.push(line);
}
},
done: function () {
var text = wrap_code(lines.join('\n'));
// insert safe HTML that is passed through the parsing
var placeholder = stash_func(text, true);
output_lines.push('');
output_lines.push(placeholder);
output_lines.push('');
handler_stack.pop();
}
};
}
return {
handle_line: function (line) {
if (line === fence) {
this.done();
} else {
lines.push(line);
}
},
done: function () {
var text = wrap_code(lines.join('\n'));
// insert safe HTML that is passed through the parsing
var placeholder = stash_func(text, true);
output_lines.push('');
output_lines.push(placeholder);
output_lines.push('');
handler_stack.pop();
}
};
}());
}