From 54581d989fac2133fabd7ffaf04124d36fc1cf7f Mon Sep 17 00:00:00 2001 From: jace-roell Date: Fri, 8 Nov 2024 10:56:19 -0500 Subject: [PATCH] linting Signed-off-by: jace-roell --- .../__system__/delete/ds/cli.files.delete.ds.system.test.ts | 2 +- packages/cli/src/zosfiles/ZosFilesBase.handler.ts | 4 ++-- packages/zosfiles/src/methods/upload/Upload.ts | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/cli/__tests__/zosfiles/__system__/delete/ds/cli.files.delete.ds.system.test.ts b/packages/cli/__tests__/zosfiles/__system__/delete/ds/cli.files.delete.ds.system.test.ts index 73a324098a..d10a786d8b 100644 --- a/packages/cli/__tests__/zosfiles/__system__/delete/ds/cli.files.delete.ds.system.test.ts +++ b/packages/cli/__tests__/zosfiles/__system__/delete/ds/cli.files.delete.ds.system.test.ts @@ -147,7 +147,7 @@ describe("Delete Data Set", () => { const deleteResponse = runCliScript(__dirname + "/__scripts__/command/command_delete_data_set.sh", TEST_ENVIRONMENT, [dsname, "--for-sure", "--ignore-not-found"]); expect(deleteResponse.stderr.toString()).toBe(""); - + //delete again const secondDelete = runCliScript(__dirname + "/__scripts__/command/command_delete_data_set.sh", TEST_ENVIRONMENT, [dsname, "--for-sure", "--ignore-not-found"]); diff --git a/packages/cli/src/zosfiles/ZosFilesBase.handler.ts b/packages/cli/src/zosfiles/ZosFilesBase.handler.ts index 9eb1222f8a..60c42f251c 100644 --- a/packages/cli/src/zosfiles/ZosFilesBase.handler.ts +++ b/packages/cli/src/zosfiles/ZosFilesBase.handler.ts @@ -49,14 +49,14 @@ export abstract class ZosFilesBaseHandler implements ICommandHandler { ); const session = new Session(sessCfgWithCreds); const response = await this.processWithSession(commandParameters, session); - + commandParameters.response.progress.endBar(); if (response.commandResponse) { commandParameters.response.console.log(response.commandResponse); } // Return as an object when using --response-format-json commandParameters.response.data.setObj(response); - + // Ensure error gets thrown if request was unsuccessful. // Sometimes it is useful to delay throwing an error until the end of the handler is // reached, for example the upload API needs to return an API response even when it fails. diff --git a/packages/zosfiles/src/methods/upload/Upload.ts b/packages/zosfiles/src/methods/upload/Upload.ts index e22d380712..528150b961 100644 --- a/packages/zosfiles/src/methods/upload/Upload.ts +++ b/packages/zosfiles/src/methods/upload/Upload.ts @@ -876,9 +876,8 @@ export class Upload { } } else if(options.filesMap?.fileNames.indexOf(path.basename(localPath)) > -1) { tempOptions.binary = options.filesMap.binary; - - // Reset encoding to undefined if binary is true to avoid file tagging issues + // Reset encoding to undefined if binary is true to avoid file tagging issues if(tempOptions.binary) tempOptions.encoding = undefined; }