Skip to content

Commit

Permalink
🎨 Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Aug 17, 2024
1 parent 0821ca9 commit 1cf4bf9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/server/src/routes/frontend/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ pub struct Args {

impl Args {
pub fn is_some(self) -> bool {
if let Some(flag) = self.thumbnail {
flag
} else {
false
}
self.thumbnail.unwrap_or_default()
}
}

Expand Down

0 comments on commit 1cf4bf9

Please sign in to comment.