Skip to content

Commit c77a79d

Browse files
authored
Use !== instead of !=
This seems to conflict with the project's styleguide.
1 parent 9c03be6 commit c77a79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function run(req, res, fn, onError) {
2323
const val = await fn(req, res)
2424

2525
// return a non-null value -> send with 200
26-
if (null != val) {
26+
if (null !== val && undefined !== val) {
2727
send(res, 200, val)
2828
}
2929
} catch (err) {

0 commit comments

Comments
 (0)