Skip to content

Commit

Permalink
Explicit variable declaration
Browse files Browse the repository at this point in the history
Co-authored-by: Todd Evanoff <evanoff@gmail.com>
  • Loading branch information
andscoop and tevanoff authored Feb 21, 2022
1 parent bafc1a9 commit 1cd2138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function * newTotalExecTimeField (db) {
const newTotalExecTimeFieldRaw = yield pg.psql.exec(db, newTotalExecTimeFieldQuery, ['-t', '-q'])

// error checks
newTotalExecTimeField = newTotalExecTimeFieldRaw.split("\n")[0].trim()
const newTotalExecTimeField = newTotalExecTimeFieldRaw.split("\n")[0].trim()

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

0 comments on commit 1cd2138

Please sign in to comment.