Skip to content

Commit ae74042

Browse files
committed
Update eslint v6
1 parent bff485b commit ae74042

File tree

4 files changed

+580
-517
lines changed

4 files changed

+580
-517
lines changed

lib/feedparser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ FeedParser.prototype.handleCloseTag = function (el){
345345
} else {
346346
stdEl = node['#local'] || node['#name'];
347347
}
348-
if (!this.stack[0].hasOwnProperty(stdEl)) {
348+
if (!Object.prototype.hasOwnProperty.call(this.stack[0], stdEl)) {
349349
this.stack[0][stdEl] = n;
350350
} else if (this.stack[0][stdEl] instanceof Array) {
351351
this.stack[0][stdEl].push(n);

0 commit comments

Comments
 (0)