Skip to content

Commit dfd22b6

Browse files
committed
simplify return statement
1 parent 379dff7 commit dfd22b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ pub fn parse_filesize(s: &str) -> Option<u64> {
260260
};
261261
}
262262

263-
return string.parse::<u64>().ok();
263+
string.parse::<u64>().ok()
264264
}
265265

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

0 commit comments

Comments
 (0)