Skip to content

Commit 1c51892

Browse files
committed
Removed inaccessible guard
1 parent 4d7843c commit 1c51892

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ program
3636
errors.push(" option '--handler <path>' allows path Lambda@Edge handler script");
3737
}
3838

39-
if (opts.port && !/^[0-9]{2,5}$/.test(opts.port) || !opts.port) {
39+
if (opts.port && !/^[0-9]{2,5}$/.test(opts.port)) {
4040
errors.push(" option '--port <number>' allows up to 5 numeric characters");
4141
}
4242

0 commit comments

Comments
 (0)