refactor: Refactored to use more idiomatic let-else statements where applicable
This commit is contained in:
1 parent
ad58912baf
commit
e50fb88bfc
43 files changed
+1337
-1291
No files matched your search
@@ -32,11 +32,10 @@ pub(super) struct MovieDetailsUi;
|
||||
|
||||
impl DrawUi for MovieDetailsUi {
|
||||
fn accepts(route: Route) -> bool {
|
||||
if let Route::Radarr(active_radarr_block, _) = route {
|
||||
return MOVIE_DETAILS_BLOCKS.contains(&active_radarr_block);
|
||||
}
|
||||
|
||||
false
|
||||
let Route::Radarr(active_radarr_block, _) = route else {
|
||||
return false;
|
||||
};
|
||||
MOVIE_DETAILS_BLOCKS.contains(&active_radarr_block)
|
||||
}
|
||||
|
||||
fn draw(f: &mut Frame<'_>, app: &mut App<'_>, _area: Rect) {
|
||||
|
||||
Reference in new issue
Block a user