Skip to content

Commit

Permalink
chore: polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlexLichter committed Apr 20, 2018
1 parent 30f228a commit c4e5ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function resolveContentType (type) {
}

async function createFeed (feedOptions, callback) {
if (['rss2', 'json1', 'atom1'].indexOf(feedOptions.type) === -1) {
if (!['rss2', 'json1', 'atom1'].includes(feedOptions.type)) {
logger.fatal(`Could not create Feed ${feedOptions.path} - Unknown feed type`)
return callback(null, '', feedOptions.cacheTime)
}
Expand Down

0 comments on commit c4e5ff1

Please # to comment.