summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2017-01-01 18:06:35 +0300
committerdartraiden <wowemuh@gmail.com>2017-01-01 18:06:35 +0300
commit1fd8646f1bf1f0068245131742fe54ce4d501831 (patch)
tree8c411b773343618346b2a30f9b415a435f55341d /plugins/WhenWasIt
parent99b1776c0323a63631c350bf842dd00358730dd0 (diff)
"if" = "else", so "if" is useless
Diffstat (limited to 'plugins/WhenWasIt')
-rw-r--r--plugins/WhenWasIt/src/notifiers.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/WhenWasIt/src/notifiers.cpp b/plugins/WhenWasIt/src/notifiers.cpp
index c4869a53dd..739fbbb789 100644
--- a/plugins/WhenWasIt/src/notifiers.cpp
+++ b/plugins/WhenWasIt/src/notifiers.cpp
@@ -138,12 +138,8 @@ int PopupNotifyMissedBirthday(MCONTACT hContact, int dab, int age)
sex = TranslateT("He/She");
break;
}
- if (age > 0){
- if (dab > 0)
- mir_snwprintf(pd.lptzText, MAX_SECONDLINE, TranslateT("%s\n%s just turned %d."), text, sex, age);
- else
- mir_snwprintf(pd.lptzText, MAX_SECONDLINE, TranslateT("%s\n%s just turned %d."), text, sex, age);
- }
+ if (age > 0)
+ mir_snwprintf(pd.lptzText, MAX_SECONDLINE, TranslateT("%s\n%s just turned %d."), text, sex, age);
else
mir_wstrncpy(pd.lptzText, text, MAX_SECONDLINE - 1);