We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac75f79 commit 0672766Copy full SHA for 0672766
JavaScript/5-void.js
@@ -4,7 +4,7 @@ const f = ({ a, b }, callback) => {
4
if (a < 0) return void callback(0);
5
if (b > 9) return void callback(100);
6
if (a === b) return void callback(-1);
7
- void callback(b - a);
+ callback(b - a);
8
};
9
10
f({ a: 5, b: 7 }, (res) => {
0 commit comments