Skip to content

Commit

Permalink
Added missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKoegel committed Aug 7, 2024
1 parent c4592d9 commit 563e2ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/addons/vpc-cni/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,19 +401,19 @@ export class VpcCniAddOn extends CoreAddOn {
}
}

/**
* Iterates over all values including nested child objects, removes undefined entries and stringifies the remaining if they are not already strings
*/
/**
* Iterates over all values including nested child objects, removes undefined entries and stringifies the remaining if they are not already strings
*/
function ConvertPropertiesToString(helmValues: Values): void {
Object.keys(helmValues).forEach(key => {
if (helmValues[key] === undefined) {
delete helmValues[key]
delete helmValues[key];
}
else if (typeof helmValues[key] === 'object'){
ConvertPropertiesToString(helmValues[key]);
}
else if (typeof helmValues[key] !== 'string'){
helmValues[key] = JSON.stringify(helmValues[key])
helmValues[key] = JSON.stringify(helmValues[key]);
}
});
}
Expand Down

0 comments on commit 563e2ee

Please sign in to comment.