Skip to content

Commit 5a8cab6

Browse files
committed
fixed sonar check
1 parent 0e71a2a commit 5a8cab6

File tree

1 file changed

+1
-2
lines changed
  • packages/react-native/src/lib/common

1 file changed

+1
-2
lines changed

packages/react-native/src/lib/common/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ export const getLanguageCode = (
183183
export const shouldDisplayBasedOnPercentage = (
184184
displayPercentage: number
185185
): boolean => {
186-
// NOSONAR: Math.random() is sufficient for non-security survey display logic
187-
return Math.random() * 100 < displayPercentage;
186+
return Math.random() * 100 < displayPercentage; // NOSONAR: Math.random() is sufficient for non-security survey display logic
188187
};
189188

190189
export const isNowExpired = (expirationDate: Date): boolean => {

0 commit comments

Comments
 (0)