Skip to content

Commit

Permalink
Type check added
Browse files Browse the repository at this point in the history
  • Loading branch information
antonyagustine committed Jan 24, 2024
1 parent 7d49b53 commit 976bfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contentstack-utilities/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default class Logger {
* the sensitiveKeys array, and false otherwise.
*/
isSensitiveKey(keyStr: string) {
if (keyStr && typeof keyStr !== 'symbol') {
if (keyStr && typeof keyStr === 'string') {
return this.sensitiveKeys.some((regex) => regex.test(keyStr));
}
}
Expand Down

0 comments on commit 976bfae

Please sign in to comment.