Skip to content

Commit

Permalink
fix: not blocking standard any longer
Browse files Browse the repository at this point in the history
I just realised why linters don't like mixed operators: javascript has
its own special syntax for mixed operators...
  • Loading branch information
tgetgood authored and RichardLitt committed Oct 20, 2017
1 parent c776a07 commit adf2782
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ const cli = meow([`

const token = cli.flags.t || process.env.GITHUB_TOKEN

/* eslint-disable no-mixed-operators */
const after = cli.flags.a && new Date(cli.flags.a) || new Date(0)
const before = cli.flags.b && new Date(cli.flags.b) || new Date()
/* eslint-enable no-mixed-operators */
const after = cli.flags.a ? new Date(cli.flags.a) : new Date(0)
const before = cli.flags.b ? new Date(cli.flags.b) : new Date()

const debugMode = cli.flags.debug

Expand Down

0 comments on commit adf2782

Please sign in to comment.