Skip to content

Commit 33d1cb6

Browse files
committed
Removing unneeded conditional, fixing code coverage
1 parent 1a092dc commit 33d1cb6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/route.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,7 @@ exports = module.exports = internals.Route = class {
358358
return;
359359
}
360360

361-
if (this.method[0] !== '_') {
362-
message = `${message}: ${this.method.toUpperCase()} ${this.path}`;
363-
}
361+
message = `${message}: ${this.method.toUpperCase()} ${this.path}`;
364362

365363
throw new Assert.AssertionError({
366364
message,

0 commit comments

Comments
 (0)