mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 22:48:16 +00:00
eslint: change no-else-return to error and fix violations
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
}());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user