Skip to content

Commit 7972356

Browse files
committed
E_showPrompt_Q3: improve readability by adding else
1 parent 5b83d75 commit 7972356

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/js/banglejs/E_showPrompt_Q3.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
draw(i); // highlighted button
6565
g.flip(); // write to screen
6666
E.showPrompt(); // remove
67-
if (e.type===2 /*long press*/ && options.buttonsLong && options.buttonsLong[btns[i]]) {
67+
if (e.type===2 /*long press*/ && options.buttonsLong && options.buttonsLong[btns[i]])
6868
resolve(options.buttonsLong[btns[i]]);
69-
}
70-
resolve(options.buttons[btns[i]]);
69+
else
70+
resolve(options.buttons[btns[i]]);
7171
}
7272
});
7373
}};

0 commit comments

Comments
 (0)