style: Allow lonely ifs where appropriate
We now have a lint rule to disallow lonely ifs, however there are cases where the "lonely" part mirrors code from the preceding if clause. Opt out of the lint rule in those cases. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/818
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
65c5cfd4dc
commit
a32c4f30d1
@ -544,6 +544,7 @@ var ShellUserVerifier = class {
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// eslint-disable-next-line no-lonely-if
|
||||
if (!this.hasPendingMessages) {
|
||||
this._cancelAndReset();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user