Skip to content

Commit 95ee7ce

Browse files
committed
linter fix
1 parent a598310 commit 95ee7ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { HtmlValidate } = require('html-validate')
1010
const validatorErrorPage = fs.readFileSync(path.join(__dirname, 'templates/errorPage.html'))
1111

1212
module.exports = (app, params) => {
13-
if (app.hasOwnProperty('listen') || typeof app.listen === 'function') {
13+
if (Object.prototype.hasOwnProperty.call(app, 'listen') || typeof app.listen === 'function') {
1414
params = params || {} // two arguments
1515
} else {
1616
params = app // one argument

0 commit comments

Comments
 (0)