From 19c9c15969265cdc1dcb796a180e1af01479128d Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Mon, 23 Jul 2018 18:41:27 +0200 Subject: [PATCH] Replace let by const in pseudo-constant conditional assignment --- app/services/stream_copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/stream_copy.js b/app/services/stream_copy.js index 62007a43..f897b933 100644 --- a/app/services/stream_copy.js +++ b/app/services/stream_copy.js @@ -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);