shorten list build

This commit is contained in:
Raptorox 2026-07-28 22:38:33 +02:00
parent edb33ebeec
commit db3e0f846e
No known key found for this signature in database
GPG key ID: 8B3556FC3ED1F6D8

View file

@ -11,10 +11,7 @@ impl ListCommand {
pub fn build(self) -> super::Command {
let uuids = self.uuids.unwrap_or(false);
let mut s = format!("list");
if uuids {
s.push_str(" uuids");
}
let s = format!("list {}", if uuids { "uuids" } else {""} );
super::Command(s)
}
}