From fcbb13b5bfeed7b5953c896414d5b3293275db86 Mon Sep 17 00:00:00 2001 From: decaffeinate Date: Mon, 16 Dec 2019 10:24:37 +0000 Subject: [PATCH] decaffeinate: Run post-processing cleanups on AWSSDKPersistorManager.coffee and 13 other files --- .../filestore/app/coffee/AWSSDKPersistorManager.js | 8 +++++++- services/filestore/app/coffee/BucketController.js | 5 +++++ services/filestore/app/coffee/Errors.js | 6 ++++++ services/filestore/app/coffee/FSPersistorManager.js | 7 +++++++ services/filestore/app/coffee/FileController.js | 6 ++++++ services/filestore/app/coffee/FileConverter.js | 5 +++++ services/filestore/app/coffee/FileHandler.js | 7 +++++++ .../filestore/app/coffee/HealthCheckController.js | 2 ++ services/filestore/app/coffee/ImageOptimiser.js | 5 +++++ services/filestore/app/coffee/KeyBuilder.js | 7 +++++++ services/filestore/app/coffee/LocalFileWriter.js | 5 +++++ services/filestore/app/coffee/PersistorManager.js | 2 ++ services/filestore/app/coffee/S3PersistorManager.js | 12 +++++++++++- services/filestore/app/coffee/SafeExec.js | 7 +++++++ 14 files changed, 82 insertions(+), 2 deletions(-) diff --git a/services/filestore/app/coffee/AWSSDKPersistorManager.js b/services/filestore/app/coffee/AWSSDKPersistorManager.js index c263936073..8220af4871 100644 --- a/services/filestore/app/coffee/AWSSDKPersistorManager.js +++ b/services/filestore/app/coffee/AWSSDKPersistorManager.js @@ -1,3 +1,9 @@ +/* eslint-disable + handle-callback-err, + no-return-assign, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns @@ -48,7 +54,7 @@ module.exports = { Key: key }; if ((opts.start != null) && (opts.end != null)) { - params['Range'] = `bytes=${opts.start}-${opts.end}`; + params.Range = `bytes=${opts.start}-${opts.end}`; } const request = s3.getObject(params); const stream = request.createReadStream(); diff --git a/services/filestore/app/coffee/BucketController.js b/services/filestore/app/coffee/BucketController.js index ecd4f9a54f..d2c4c06fae 100644 --- a/services/filestore/app/coffee/BucketController.js +++ b/services/filestore/app/coffee/BucketController.js @@ -1,3 +1,8 @@ +/* eslint-disable + no-unused-vars, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/Errors.js b/services/filestore/app/coffee/Errors.js index c4f8f7004c..4a9f65bb4b 100644 --- a/services/filestore/app/coffee/Errors.js +++ b/services/filestore/app/coffee/Errors.js @@ -1,3 +1,9 @@ +/* eslint-disable + no-proto, + no-unused-vars, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. let Errors; var NotFoundError = function(message) { const error = new Error(message); diff --git a/services/filestore/app/coffee/FSPersistorManager.js b/services/filestore/app/coffee/FSPersistorManager.js index c4792e6215..c90d4b6dfe 100644 --- a/services/filestore/app/coffee/FSPersistorManager.js +++ b/services/filestore/app/coffee/FSPersistorManager.js @@ -1,3 +1,10 @@ +/* eslint-disable + handle-callback-err, + no-unreachable, + node/no-deprecated-api, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/FileController.js b/services/filestore/app/coffee/FileController.js index f40d4a0317..51251ba010 100644 --- a/services/filestore/app/coffee/FileController.js +++ b/services/filestore/app/coffee/FileController.js @@ -1,3 +1,9 @@ +/* eslint-disable + camelcase, + no-unused-vars, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/FileConverter.js b/services/filestore/app/coffee/FileConverter.js index b35265c22b..e241cd8275 100644 --- a/services/filestore/app/coffee/FileConverter.js +++ b/services/filestore/app/coffee/FileConverter.js @@ -1,3 +1,8 @@ +/* eslint-disable + camelcase, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/FileHandler.js b/services/filestore/app/coffee/FileHandler.js index 548e206a12..c22a276b65 100644 --- a/services/filestore/app/coffee/FileHandler.js +++ b/services/filestore/app/coffee/FileHandler.js @@ -1,3 +1,10 @@ +/* eslint-disable + camelcase, + no-self-assign, + no-unused-vars, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/HealthCheckController.js b/services/filestore/app/coffee/HealthCheckController.js index 4f49f4a19a..e360891609 100644 --- a/services/filestore/app/coffee/HealthCheckController.js +++ b/services/filestore/app/coffee/HealthCheckController.js @@ -1,3 +1,5 @@ +// TODO: This file was created by bulk-decaffeinate. +// Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/ImageOptimiser.js b/services/filestore/app/coffee/ImageOptimiser.js index 570730618d..0126786167 100644 --- a/services/filestore/app/coffee/ImageOptimiser.js +++ b/services/filestore/app/coffee/ImageOptimiser.js @@ -1,3 +1,8 @@ +/* eslint-disable + no-unused-vars, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/KeyBuilder.js b/services/filestore/app/coffee/KeyBuilder.js index f5c8b7d5da..5d3a36e6b1 100644 --- a/services/filestore/app/coffee/KeyBuilder.js +++ b/services/filestore/app/coffee/KeyBuilder.js @@ -1,3 +1,10 @@ +/* eslint-disable + camelcase, + no-return-assign, + no-unused-vars, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/LocalFileWriter.js b/services/filestore/app/coffee/LocalFileWriter.js index a6457de526..b0bfedcc04 100644 --- a/services/filestore/app/coffee/LocalFileWriter.js +++ b/services/filestore/app/coffee/LocalFileWriter.js @@ -1,3 +1,8 @@ +/* eslint-disable + handle-callback-err, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns diff --git a/services/filestore/app/coffee/PersistorManager.js b/services/filestore/app/coffee/PersistorManager.js index 993a874d6a..95a4122591 100644 --- a/services/filestore/app/coffee/PersistorManager.js +++ b/services/filestore/app/coffee/PersistorManager.js @@ -1,3 +1,5 @@ +// TODO: This file was created by bulk-decaffeinate. +// Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: * DS103: Rewrite code to no longer use __guard__ diff --git a/services/filestore/app/coffee/S3PersistorManager.js b/services/filestore/app/coffee/S3PersistorManager.js index a8edbc6844..0face2de53 100644 --- a/services/filestore/app/coffee/S3PersistorManager.js +++ b/services/filestore/app/coffee/S3PersistorManager.js @@ -1,3 +1,13 @@ +/* eslint-disable + handle-callback-err, + new-cap, + no-return-assign, + no-unused-vars, + node/no-deprecated-api, + standard/no-callback-literal, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.from @@ -146,7 +156,7 @@ module.exports = { Key: key }; if ((opts.start != null) && (opts.end != null)) { - s3Params['Range'] = `bytes=${opts.start}-${opts.end}`; + s3Params.Range = `bytes=${opts.start}-${opts.end}`; } const s3Request = s3.getObject(s3Params); diff --git a/services/filestore/app/coffee/SafeExec.js b/services/filestore/app/coffee/SafeExec.js index b64d5376d5..4f13785460 100644 --- a/services/filestore/app/coffee/SafeExec.js +++ b/services/filestore/app/coffee/SafeExec.js @@ -1,3 +1,10 @@ +/* eslint-disable + camelcase, + handle-callback-err, + no-return-assign, +*/ +// TODO: This file was created by bulk-decaffeinate. +// Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS101: Remove unnecessary use of Array.from