eslint: Add and enable space-unary-ops rule.

Info about rule at https://eslint.org/docs/rules/space-unary-ops.
This commit is contained in:
Shubham Dhama
2018-06-05 00:39:11 +05:30
parent ea6a1750f5
commit c6738889a9
28 changed files with 58 additions and 57 deletions

View File

@@ -398,19 +398,19 @@ function change_stream_privacy(e) {
function stream_desktop_notifications_clicked(e) {
var sub = get_sub_for_target(e.target);
sub.desktop_notifications = ! sub.desktop_notifications;
sub.desktop_notifications = !sub.desktop_notifications;
exports.set_stream_property(sub, 'desktop_notifications', sub.desktop_notifications);
}
function stream_audible_notifications_clicked(e) {
var sub = get_sub_for_target(e.target);
sub.audible_notifications = ! sub.audible_notifications;
sub.audible_notifications = !sub.audible_notifications;
exports.set_stream_property(sub, 'audible_notifications', sub.audible_notifications);
}
function stream_push_notifications_clicked(e) {
var sub = get_sub_for_target(e.target);
sub.push_notifications = ! sub.push_notifications;
sub.push_notifications = !sub.push_notifications;
exports.set_stream_property(sub, 'push_notifications', sub.push_notifications);
}