From 81517373aa2eed68fc9901c7c71f22a18040cd51 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Jan 2017 00:00:26 +0300 Subject: Fix code style. Remove some useless checks. --- src/actions/commands.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/actions') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index c02d2ef39..c7633972b 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -93,12 +93,9 @@ static std::string getNick(const InputEvent &event) WhisperTab *const whisper = static_cast(event.tab); if (whisper->getNick().empty()) { - if (event.tab) - { - // TRANSLATORS: change relation - event.tab->chatLog(_("Please specify a name."), - ChatMsgType::BY_SERVER); - } + // TRANSLATORS: change relation + event.tab->chatLog(_("Please specify a name."), + ChatMsgType::BY_SERVER); return std::string(); } args = whisper->getNick(); -- cgit v1.2.3-70-g09d2