Skip to content

Commit

Permalink
Merge pull request #187 from heroku/mi/equalsign-fix
Browse files Browse the repository at this point in the history
Fix equality operators
  • Loading branch information
Milad Imen authored Oct 13, 2021
2 parents ece4317 + 03f534d commit 80b9b83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ function * newTotalExecTimeField (db) {

// error checks
let newTotalExecTimeField = newTotalExecTimeFieldRaw.split('\n')
if (newTotalExecTimeField.length != 6) {
if (newTotalExecTimeField.length !== 6) {
throw new Error('Unable to determine database version')
}
newTotalExecTimeField = newTotalExecTimeFieldRaw.split('\n')[2].trim()

if (newTotalExecTimeField != 't' && newTotalExecTimeField != 'f') {
if (newTotalExecTimeField !== 't' && newTotalExecTimeField !== 'f') {
throw new Error(`Unable to determine database version, expected "t" or "f", got: "${newTotalExecTimeField}"`)
}

return newTotalExecTimeField == 't'
return newTotalExecTimeField === 't'
}

module.exports = {
Expand Down

0 comments on commit 80b9b83

Please sign in to comment.