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

@@ -122,10 +122,10 @@ exports.add_subject_links = function (message) {
};
exports.is_status_message = function (raw_content, content) {
return (raw_content.indexOf('/me ') === 0 &&
return raw_content.indexOf('/me ') === 0 &&
raw_content.indexOf('\n') === -1 &&
content.indexOf('<p>') === 0 &&
content.lastIndexOf('</p>') === content.length - 4);
content.lastIndexOf('</p>') === content.length - 4;
};
function handleUnicodeEmoji(unicode_emoji) {