eslint: Enable no-extra-parens rule.

Following sub-configuration is disabled:
                "nestedBinaryExpressions": false,
This commit is contained in:
Shubham Dhama
2018-06-06 21:49:09 +05:30
committed by showell
parent c14d17b35b
commit dcb6254a4e
62 changed files with 141 additions and 136 deletions

View File

@@ -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();