Skip to content

Commit

Permalink
Only set value of last segment if not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
mabounassif committed Mar 11, 2024
1 parent d8e640c commit 80c19a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apple-targets/src/withEasCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function safeSet(obj: any, key: string, value: any) {
}
obj = obj[segment];
});
obj[last!] = value;
obj[last!] ||= value;

return obj;
}
Expand Down

0 comments on commit 80c19a4

Please sign in to comment.