Skip to content

Commit

Permalink
fix(ftp): use eqeqeq for data in putContents
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Sep 19, 2023
1 parent f42c442 commit 3e24aab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class FtpMvsApi extends AbstractFtpApi implements ZoweExplorerApi.IMvs {
localFile: inputFilePath,
encoding: options.encoding,
};
if (profile.profile.secureFtp && data == "") {
if (profile.profile.secureFtp && data === "") {
// substitute single space for empty DS contents when saving (avoids FTPS error)
transferOptions.content = " ";
delete transferOptions.localFile;
Expand Down

0 comments on commit 3e24aab

Please sign in to comment.