mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 05:34:46 +00:00
agent-ctl: fix clippy error
Fixes: #4988 Signed-off-by: Yushuo <y-shuo@linux.alibaba.com>
This commit is contained in:
parent
4b57c04c33
commit
6cf16c4f76
@ -98,13 +98,11 @@ pub fn signame_to_signum(name: &str) -> Result<u8> {
|
|||||||
return Ok(n);
|
return Ok(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut search_term: String;
|
let mut search_term = if name.starts_with("SIG") {
|
||||||
|
name.to_string()
|
||||||
if name.starts_with("SIG") {
|
|
||||||
search_term = name.to_string();
|
|
||||||
} else {
|
} else {
|
||||||
search_term = format!("SIG{}", name);
|
format!("SIG{}", name)
|
||||||
}
|
};
|
||||||
|
|
||||||
search_term = search_term.to_uppercase();
|
search_term = search_term.to_uppercase();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user