Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Nov 8, 2024
1 parent e64703b commit 54581d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/zosfiles/ZosFilesBase.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions packages/zosfiles/src/methods/upload/Upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 54581d9

Please sign in to comment.