Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -447,19 +447,15 @@ private SentryReplayQuality parseReplayQuality(@Nullable String qualityString) {
return SentryReplayQuality.MEDIUM;
}

try {
switch (qualityString.toLowerCase(Locale.ROOT)) {
case "low":
return SentryReplayQuality.LOW;
case "medium":
return SentryReplayQuality.MEDIUM;
case "high":
return SentryReplayQuality.HIGH;
default:
return SentryReplayQuality.MEDIUM;
}
} catch (Exception e) {
return SentryReplayQuality.MEDIUM;
switch (qualityString.toLowerCase(Locale.ROOT)) {
case "low":
return SentryReplayQuality.LOW;
case "medium":
return SentryReplayQuality.MEDIUM;
case "high":
return SentryReplayQuality.HIGH;
default:
return SentryReplayQuality.MEDIUM;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So weird this code was written like that before :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't even remember how I came up with that or if it was AI magic 😓

}

Expand Down
Loading