summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-04-23 13:43:09 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-04-23 13:43:09 +0000
commit737f9173162b17c2b9f3c742dd8e58a1673aad0b (patch)
tree604404caab1f09bf92e0cd040a925f0bf2da6e4c /usr.bin
parentf6d9929fad4268f802259a72774687b24136ba11 (diff)
Remove unnecessary brackets.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-display-message.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-display-message.c b/usr.bin/tmux/cmd-display-message.c
index aed48060550..7eb019e7b63 100644
--- a/usr.bin/tmux/cmd-display-message.c
+++ b/usr.bin/tmux/cmd-display-message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-display-message.c,v 1.43 2018/04/18 14:35:37 nicm Exp $ */
+/* $OpenBSD: cmd-display-message.c,v 1.44 2018/04/23 13:43:08 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -89,10 +89,8 @@ cmd_display_message_exec(struct cmd *self, struct cmdq_item *item)
msg = format_expand_time(ft, template, time(NULL));
if (args_has(self->args, 'p'))
cmdq_print(item, "%s", msg);
- else {
- if (c != NULL)
- status_message_set(c, "%s", msg);
- }
+ else if (c != NULL)
+ status_message_set(c, "%s", msg);
free(msg);
format_free(ft);