mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 20:06:26 +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 {
|
fn describe(&self) -> WString {
|
||||||
let mut result = WString::new();
|
let mut result = WString::new();
|
||||||
for gen in self.as_array() {
|
for gen in self.as_array() {
|
||||||
if result.len() > 0 {
|
if !result.is_empty() {
|
||||||
result.push(',');
|
result.push(',');
|
||||||
}
|
}
|
||||||
if gen == invalid_generation {
|
if gen == invalid_generation {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user