Skip to content

Commit

Permalink
refactor: remove unnecessary ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
ttshivers authored and Ahmad Nassri committed Oct 20, 2020
1 parent c05a932 commit 971d579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action/lib/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const CONFIG = {
}

module.exports = async function (commits) {
const { rules, parserPreset } = await load(CONFIG)
const rawOpts = parserPreset ? { parserOpts: parserPreset.parserOpts } : {}
const { rules, parserPreset: { parserOpts } } = await load(CONFIG)
const rawOpts = { parserOpts }

let fail = false
const report = []
Expand Down

0 comments on commit 971d579

Please sign in to comment.