Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Commit

Permalink
refactor: Remove Sonar smell
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Jan 7, 2021
1 parent 3a08cea commit 34fc109
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ export function warn(text) {
console.warn(message(text));
}

export function warnOnce(message) {
if (!warnsTraced[message]) {
warnsTraced[message] = true;
warn(message);
export function warnOnce(text) {
if (!warnsTraced[text]) {
warnsTraced[text] = true;
warn(text);
}
}

Expand Down

0 comments on commit 34fc109

Please sign in to comment.