Skip to content

Commit

Permalink
refactor(client): Simplify conditional in BinaryEngine.ts (#15909)
Browse files Browse the repository at this point in the history
Evaluation of `(a || b) && a = a` provided that b does not have side effects.
  • Loading branch information
Miguel Fernández committed Oct 20, 2022
1 parent 630eb6d commit f176d1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/engine-core/src/binary/BinaryEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,8 @@ ${chalk.dim("In case we're mistaken, please report this to us 🙏.")}`)
PRISMA_DML_PATH: this.datamodelPath,
}

if (this.logQueries || this.logLevel === 'info') {
if (this.logQueries) {
env.LOG_QUERIES = 'true'
}
if (this.logQueries) {
env.LOG_QUERIES = 'true'
}

if (this.datasources) {
Expand Down

0 comments on commit f176d1d

Please sign in to comment.