summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'format.c')
-rw-r--r--format.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/format.c b/format.c
index 6d85f3fc..7da6c802 100644
--- a/format.c
+++ b/format.c
@@ -1104,11 +1104,10 @@ format_find(struct format_tree *ft, const char *key, int modifiers)
xasprintf(&found, "%lld", (long long)fe->t);
goto found;
}
- if (fe->value == NULL && fe->cb != NULL) {
+ if (fe->value == NULL && fe->cb != NULL)
fe->cb(ft, fe);
- if (fe->value == NULL)
- fe->value = xstrdup("");
- }
+ if (fe->value == NULL)
+ fe->value = xstrdup("");
found = xstrdup(fe->value);
goto found;
}