mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
cons_show_aliases() simpify condition
This commit is contained in:
parent
5db14b2c48
commit
785e3f5623
@ -1067,9 +1067,7 @@ cons_show_aliases(GList *aliases)
|
|||||||
}
|
}
|
||||||
|
|
||||||
GList *curr = aliases;
|
GList *curr = aliases;
|
||||||
if (curr) {
|
cons_show("Command aliases:");
|
||||||
cons_show("Command aliases:");
|
|
||||||
}
|
|
||||||
while (curr) {
|
while (curr) {
|
||||||
ProfAlias *alias = curr->data;
|
ProfAlias *alias = curr->data;
|
||||||
cons_show(" /%s -> %s", alias->name, alias->value);
|
cons_show(" /%s -> %s", alias->name, alias->value);
|
||||||
|
Loading…
Reference in New Issue
Block a user