Fix clippy lint
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
Alex 2022-06-27 12:01:23 +02:00
parent 928394cc32
commit fdfe7dd60d
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -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