mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
js: Use ES6 object literal shorthand syntax.
Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -15,10 +15,10 @@ const util = require("./util");
|
||||
Handlebars.registerHelper("plural", (condition, one, other) => (condition === 1 ? one : other));
|
||||
|
||||
Handlebars.registerHelper({
|
||||
eq: function (a, b) {
|
||||
eq(a, b) {
|
||||
return a === b;
|
||||
},
|
||||
and: function (...args) {
|
||||
and(...args) {
|
||||
args.pop(); // Handlebars options
|
||||
if (args.length === 0) {
|
||||
return true;
|
||||
@@ -31,7 +31,7 @@ Handlebars.registerHelper({
|
||||
}
|
||||
return last;
|
||||
},
|
||||
or: function (...args) {
|
||||
or(...args) {
|
||||
args.pop(); // Handlebars options
|
||||
if (args.length === 0) {
|
||||
return false;
|
||||
@@ -44,7 +44,7 @@ Handlebars.registerHelper({
|
||||
}
|
||||
return last;
|
||||
},
|
||||
not: function (a) {
|
||||
not(a) {
|
||||
return !a || Handlebars.Utils.isEmpty(a);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user