Skip to content

Commit

Permalink
simplify return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jhspetersson committed Dec 12, 2024
1 parent 379dff7 commit dfd22b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ pub fn parse_filesize(s: &str) -> Option<u64> {
};
}

return string.parse::<u64>().ok();
string.parse::<u64>().ok()
}

static FILE_SIZE_FORMAT_REGEX: LazyLock<Regex> = LazyLock::new(|| {
Expand Down

0 comments on commit dfd22b6

Please sign in to comment.