mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:39:39 +08:00
Fix a clippy lint warning
This commit is contained in:
parent
35f8f421fe
commit
ec28a30bd6
@ -96,7 +96,7 @@ impl generation_list_t {
|
||||
fn describe(&self) -> WString {
|
||||
let mut result = WString::new();
|
||||
for gen in self.as_array() {
|
||||
if result.len() > 0 {
|
||||
if !result.is_empty() {
|
||||
result.push(',');
|
||||
}
|
||||
if gen == invalid_generation {
|
||||
|
Loading…
x
Reference in New Issue
Block a user