Skip to content

Commit

Permalink
fix: address CR
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jun 26, 2023
1 parent a977cd0 commit 2e4c56f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/helper/REST.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class REST extends Helper {
}

if (typeof request.data === 'object') {
let returnedValue = {};
const returnedValue = {};
for (const [key, value] of Object.entries(request.data)) {
returnedValue[key] = value;
if (value instanceof Secret) returnedValue[key] = value.getMasked();
Expand Down
2 changes: 1 addition & 1 deletion lib/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class Step {
} else if (arg.toString && arg.toString() !== '[object Object]') {
return arg.toString();
} else if (typeof arg === 'object') {
let returnedArg = {};
const returnedArg = {};
for (const [key, value] of Object.entries(arg)) {
returnedArg[key] = value;
if (value instanceof Secret) returnedArg[key] = value.getMasked();
Expand Down

0 comments on commit 2e4c56f

Please sign in to comment.