Permalink
Browse files

Fix pass selector

  • Loading branch information...
Kikobeats committed Jul 9, 2018
1 parent 47b259a commit 51aa6871f3d66fa1b6b2ac96bbae181ffd18bd01
Showing with 1 addition and 5 deletions.
  1. +1 −4 bin/cli/extract-urls.js
  2. +0 −1 bin/cli/index.js
@@ -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)
@@ -51,7 +51,6 @@ const cli = require('meow')(require('./help'), {
default: true
},
logspeed: {
alias: 's',
type: 'number',
default: 100
},

0 comments on commit 51aa687

Please sign in to comment.