clippy: remove explicit returns
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
1 parent
d8d8af9826
commit
38556bf60d
13 files changed
+28
-28
No files matched your search
@@ -239,7 +239,7 @@ async fn get_status(
|
||||
}
|
||||
let text = value.as_str().unwrap().to_string();
|
||||
if text.is_empty() {
|
||||
return Ok(String::from("--FULL--"));
|
||||
Ok(String::from("--FULL--"))
|
||||
} else {
|
||||
Ok(text)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user