Skip to content

Commit

Permalink
Remove redundant uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola Mihaylov committed Mar 29, 2021
1 parent 910e379 commit 6790988
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Obfuscator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ type PlainObject = Record<string, unknown>;

class Obfuscator {
public obfuscateString(value: string, tag: Tag): string {
const upperCasedTag = tag.toUpperCase();
return `[${upperCasedTag}]${value}[/${upperCasedTag}]`;
return `[${tag}]${value}[/${tag}]`;
}

public obfuscateObject<T extends PlainObject | Error>(object: T, obfuscateSettings: Array<[string, Tag]>): T {
Expand Down

0 comments on commit 6790988

Please sign in to comment.