Replace let by const in pseudo-constant conditional assignment
This commit is contained in:
parent
151bffaad4
commit
19c9c15969
@ -39,7 +39,7 @@ module.exports = class StreamCopy {
|
|||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
let streamMaker = action === ACTION_TO ? copyTo : copyFrom;
|
const streamMaker = action === ACTION_TO ? copyTo : copyFrom;
|
||||||
this.stream = streamMaker(this.sql);
|
this.stream = streamMaker(this.sql);
|
||||||
const pgstream = client.query(this.stream);
|
const pgstream = client.query(this.stream);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user