Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Commit a2fa305

Browse files
committed
Refactor a hasOwnProperty call
see https://eslint.org/docs/rules/no-prototype-builtins
1 parent 9cf6e95 commit a2fa305

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

broccoli-template-linter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function TemplateLinter(inputNode, _options) {
1818
if (!(this instanceof TemplateLinter)) { return new TemplateLinter(inputNode, _options); }
1919

2020
let options = _options || {};
21-
if (!options.hasOwnProperty('persist')) {
21+
if (!Object.prototype.hasOwnProperty.call(options, 'persist')) {
2222
options.persist = true;
2323
}
2424

0 commit comments

Comments
 (0)