Skip to content

Commit

Permalink
refactor: less identation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 20, 2019
1 parent 332edfd commit f020439
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions packages/metascraper-uol/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ const ward = createWard(({ url }) => isValidUrl(url))
const wrapTitle = createWrap(title)
const wrapDescription = createWrap(description)

module.exports = () => {
return {
title: [
ward(wrapTitle(($, url) => $jsonld('headline')($, url))),
ward(wrapTitle($ => $('title').text()))
],
description: [
ward(wrapDescription(($, url) => $jsonld('description')($, url)))
]
}
}
module.exports = () => ({
title: [
ward(wrapTitle(($, url) => $jsonld('headline')($, url))),
ward(wrapTitle($ => $('title').text()))
],
description: [
ward(wrapDescription(($, url) => $jsonld('description')($, url)))
]
})

module.exports.isValidUrl = isValidUrl

0 comments on commit f020439

Please sign in to comment.