Remove usage of == and !=
This commit is contained in:
parent
205a617c51
commit
b67cd10c64
21 changed files with 79 additions and 78 deletions
|
@ -121,9 +121,9 @@ export function setup(app) {
|
|||
return;
|
||||
}
|
||||
candidates = candidates.filter((binding) => {
|
||||
return !!binding.altKey == event.altKey && !!binding.ctrlKey == event.ctrlKey;
|
||||
return !!binding.altKey === event.altKey && !!binding.ctrlKey === event.ctrlKey;
|
||||
});
|
||||
if (candidates.length != 1) {
|
||||
if (candidates.length !== 1) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue