mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
eslint: Enable arrow-parens.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
d51afcf485
commit
b0253c5a2e
@@ -85,13 +85,13 @@ Handlebars.registerHelper('tr', function (context, options) {
|
||||
// 1. `context` is very important. It can be `this` or an
|
||||
// object or key of the current context.
|
||||
// 2. Use `__` instead of `{{` and `}}` to declare expressions
|
||||
const result = i18n.t(options.fn(context).trim().split("\n").map(s => s.trim()).join(" "), context);
|
||||
const result = i18n.t(options.fn(context).trim().split("\n").map((s) => s.trim()).join(" "), context);
|
||||
return new Handlebars.SafeString(result);
|
||||
});
|
||||
|
||||
Handlebars.registerHelper(
|
||||
"rendered_markdown",
|
||||
content => new Handlebars.SafeString(util.clean_user_content_links(content))
|
||||
(content) => new Handlebars.SafeString(util.clean_user_content_links(content))
|
||||
);
|
||||
|
||||
window.templates = exports;
|
||||
|
||||
Reference in New Issue
Block a user