Skip to content

Commit

Permalink
fix: failing unit test due to typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdFire87 committed Apr 3, 2020
1 parent 2a2b48e commit 73318e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const compareParams = (localParams: SSMParamWithValue[], remoteParams: SS
} else {
// Can't rely on serialized YAML string to be the same as the original definition.
// We therefore parse it & do quick-n-dirty deep object comparison via JSON.stringify
const parsedExisting = yaml.safeLoad(existingParam.Value);
const parsedExisting = yaml.safeLoad(existingParam.Value ? existingParam.Value : '');
if (JSON.stringify(parsedExisting) === JSON.stringify(curr.value)) {
acc.existingUnchangedParams.push(curr);
return acc;
Expand Down

0 comments on commit 73318e2

Please sign in to comment.