Fix clippy lint
This commit is contained in:
parent
928394cc32
commit
fdfe7dd60d
1 changed files with 1 additions and 1 deletions
|
@ -738,7 +738,7 @@ impl Worker for ResyncWorker {
|
|||
if elen > 0 {
|
||||
ret.push(format!("{} blocks in error state", elen));
|
||||
}
|
||||
if ret.len() > 0 {
|
||||
if !ret.is_empty() {
|
||||
Some(ret.join(", "))
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Reference in a new issue