diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-28 00:00:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-28 00:00:26 +0300 |
commit | 81517373aa2eed68fc9901c7c71f22a18040cd51 (patch) | |
tree | 44228d7cf59a07cc209c607b1492c3dd305e9d43 /src/actions | |
parent | ec0216cdd13aa89aba5da22bad3ef723fa27f6fb (diff) | |
download | plus-81517373aa2eed68fc9901c7c71f22a18040cd51.tar.gz plus-81517373aa2eed68fc9901c7c71f22a18040cd51.tar.bz2 plus-81517373aa2eed68fc9901c7c71f22a18040cd51.tar.xz plus-81517373aa2eed68fc9901c7c71f22a18040cd51.zip |
Fix code style. Remove some useless checks.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
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<WhisperTab* const>(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(); |