mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
eslint: Enable no-extra-parens rule.
Following sub-configuration is disabled:
"nestedBinaryExpressions": false,
This commit is contained in:
@@ -58,8 +58,8 @@ exports.lower_bound = function (array, arg1, arg2, arg3, arg4) {
|
||||
|
||||
exports.same_stream_and_topic = function util_same_stream_and_topic(a, b) {
|
||||
// Streams and topics are case-insensitive.
|
||||
return ((a.stream_id === b.stream_id) &&
|
||||
(a.subject.toLowerCase() === b.subject.toLowerCase()));
|
||||
return (a.stream_id === b.stream_id) &&
|
||||
(a.subject.toLowerCase() === b.subject.toLowerCase());
|
||||
};
|
||||
|
||||
exports.is_pm_recipient = function (email, message) {
|
||||
@@ -96,8 +96,8 @@ exports.same_recipient = function util_same_recipient(a, b) {
|
||||
};
|
||||
|
||||
exports.same_sender = function util_same_sender(a, b) {
|
||||
return ((a !== undefined) && (b !== undefined) &&
|
||||
(a.sender_email.toLowerCase() === b.sender_email.toLowerCase()));
|
||||
return (a !== undefined) && (b !== undefined) &&
|
||||
(a.sender_email.toLowerCase() === b.sender_email.toLowerCase());
|
||||
};
|
||||
|
||||
exports.normalize_recipients = function (recipients) {
|
||||
@@ -147,7 +147,7 @@ exports.make_strcmp = function () {
|
||||
}
|
||||
|
||||
return function util_strcmp(a, b) {
|
||||
return (a < b ? -1 : (a > b ? 1 : 0));
|
||||
return a < b ? -1 : a > b ? 1 : 0;
|
||||
};
|
||||
};
|
||||
exports.strcmp = exports.make_strcmp();
|
||||
|
||||
Reference in New Issue
Block a user