From dfd22b69007e6c5903ce488629e301c3c5be77c7 Mon Sep 17 00:00:00 2001 From: jhspetersson Date: Thu, 12 Dec 2024 13:57:49 +0100 Subject: [PATCH] simplify return statement --- src/util/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/mod.rs b/src/util/mod.rs index 37f66275..8297ff21 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -260,7 +260,7 @@ pub fn parse_filesize(s: &str) -> Option { }; } - return string.parse::().ok(); + string.parse::().ok() } static FILE_SIZE_FORMAT_REGEX: LazyLock = LazyLock::new(|| {