Skip to content

Commit

Permalink
fix CI#172, eslint: no-nested-ternary:[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Jan 27, 2022
1 parent 60bcb00 commit f4c6532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Hash {
static md5(thing, key = '', agency = false) {
return createHash(md5)
.update(thing)
.update(key ? (agency ? '&secret=' : '&key=') : '')
.update(key ? (agency ? '&secret=' : '&key=') : '') /* eslint-disable-line no-nested-ternary */
.update(key)
.digest(hex);
}
Expand Down

0 comments on commit f4c6532

Please sign in to comment.