Skip to content

Commit

Permalink
refactor: more explicit check
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Nov 1, 2022
1 parent 2d3bde7 commit 469a7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/contentTypeParser.js
Expand Up @@ -95,7 +95,7 @@ ContentTypeParser.prototype.getParser = function (contentType) {
}

const parser = this.cache.get(contentType)
if (parser) return parser
if (parser !== undefined) return parser

// eslint-disable-next-line no-var
for (var i = 0; i !== this.parserList.length; ++i) {
Expand Down

0 comments on commit 469a7d5

Please sign in to comment.