Replace let by const in pseudo-constant conditional assignment

This commit is contained in:
Rafa de la Torre 2018-07-23 18:41:27 +02:00
parent 151bffaad4
commit 19c9c15969

View File

@ -39,7 +39,7 @@ module.exports = class StreamCopy {
return cb(err);
}
let streamMaker = action === ACTION_TO ? copyTo : copyFrom;
const streamMaker = action === ACTION_TO ? copyTo : copyFrom;
this.stream = streamMaker(this.sql);
const pgstream = client.query(this.stream);