Skip to content

Commit 2945cb3

Browse files
authored
Merge d13cc01 into 2104bb9
2 parents 2104bb9 + d13cc01 commit 2945cb3

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

packages/core/android/src/main/java/io/sentry/react/RNSentryModuleImpl.java

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -426,19 +426,15 @@ private SentryReplayQuality parseReplayQuality(@Nullable String qualityString) {
426426
return SentryReplayQuality.MEDIUM;
427427
}
428428

429-
try {
430-
switch (qualityString.toLowerCase(Locale.ROOT)) {
431-
case "low":
432-
return SentryReplayQuality.LOW;
433-
case "medium":
434-
return SentryReplayQuality.MEDIUM;
435-
case "high":
436-
return SentryReplayQuality.HIGH;
437-
default:
438-
return SentryReplayQuality.MEDIUM;
439-
}
440-
} catch (Exception e) {
441-
return SentryReplayQuality.MEDIUM;
429+
switch (qualityString.toLowerCase(Locale.ROOT)) {
430+
case "low":
431+
return SentryReplayQuality.LOW;
432+
case "medium":
433+
return SentryReplayQuality.MEDIUM;
434+
case "high":
435+
return SentryReplayQuality.HIGH;
436+
default:
437+
return SentryReplayQuality.MEDIUM;
442438
}
443439
}
444440

0 commit comments

Comments
 (0)