From d47fc1abf17049432e70f436cfd935942a28b51c Mon Sep 17 00:00:00 2001 From: dartraiden Date: Tue, 6 Dec 2016 19:57:44 +0300 Subject: Tlen: "then" and "else" are identical, so "if" is useless --- protocols/Tlen/src/tlen_svc.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/protocols/Tlen/src/tlen_svc.cpp b/protocols/Tlen/src/tlen_svc.cpp index be6431cfc3..25442c0dba 100644 --- a/protocols/Tlen/src/tlen_svc.cpp +++ b/protocols/Tlen/src/tlen_svc.cpp @@ -743,12 +743,7 @@ int TlenProtocol::FileDeny(MCONTACT, HANDLE hTransfer, const wchar_t*) TLEN_FILE_TRANSFER *ft = (TLEN_FILE_TRANSFER *)hTransfer; char *nick = TlenNickFromJID(ft->jid); - if (ft->newP2P) { - TlenSend(this, "", ft->iqId, nick); \ - } - else { - TlenSend(this, "", ft->iqId, nick); \ - } + TlenSend(this, "", ft->iqId, nick); \ mir_free(nick); TlenP2PFreeFileTransfer(ft); return 0; -- cgit v1.2.3