Skip to content

Commit

Permalink
Throw in case of illegal openIn value
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Nilsson <[email protected]>
  • Loading branch information
mkanilsson committed Sep 26, 2023
1 parent 1cc5b84 commit 2327a4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1172,8 +1172,7 @@ public void onClick(RssItemViewHolder vh, int position) {
openRssItemInExternalBrowser(currentUrl);
break;
default:
Log.e("NRLA", "openIn has illegal value");
break;
throw new RuntimeException("Unreachable: openIn has illegal value " + openIn);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ private void showOpenSettingsView(final long feedId) {
binding.openInBrowserExternal.setChecked(true);
break;
default:
Log.e("NRLDF", "openIn has illegal value: " + openIn);
break;
throw new RuntimeException("Unreachable: openIn has illegal value " + openIn);
}
}

Expand Down

0 comments on commit 2327a4d

Please sign in to comment.