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

@@ -222,7 +222,7 @@ exports.setup_page = function (callback) {
// In case there is no stream for the draft, we need a
// single space char for proper rendering of the stream label
var space_string = new Handlebars.SafeString(" ");
var stream = (draft.stream.length > 0 ? draft.stream : space_string);
var stream = draft.stream.length > 0 ? draft.stream : space_string;
var draft_topic = draft.subject.length === 0 ?
compose.empty_topic_placeholder() : draft.subject;