When you write code, please simplify it as much as possible...
If you do the same thing both when a condition is true and when it is false, you probably don't need the condition. Instead of:
```js
if (a) {
   b();
} else {
   b();
}
```
Please use simply:
```js
b();
```
(which is strictly equivalent only if evaluating condition `a` has no side effect, which is the case here).