Skip to content

Commit

Permalink
Fix pass selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 9, 2018
1 parent 47b259a commit 51aa687
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions bin/cli/extract-urls.js
Expand Up @@ -16,7 +16,4 @@ const fromHTML = async (url, { selector, prerender, ...opts }) => {
return map(urls, 'normalizedUrl')
}

module.exports = (url, opts) => {
const fn = isXmlUrl(url) ? fromXML : fromHTML
return fn(url, opts)
}
module.exports = (url, opts) => (isXmlUrl(url) ? fromXML : fromHTML)(url, opts)
1 change: 0 additions & 1 deletion bin/cli/index.js
Expand Up @@ -51,7 +51,6 @@ const cli = require('meow')(require('./help'), {
default: true
},
logspeed: {
alias: 's',
type: 'number',
default: 100
},
Expand Down

0 comments on commit 51aa687

Please sign in to comment.