From 40686cc1869953a42f311b6d8a3558e99acef37d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 16 Feb 2020 14:35:10 +0300 Subject: useless checks removed --- protocols/Discord/src/avatars.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'protocols/Discord/src') diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp index cc12cbb381..38e7cb4eb9 100644 --- a/protocols/Discord/src/avatars.cpp +++ b/protocols/Discord/src/avatars.cpp @@ -20,10 +20,7 @@ along with this program. If not, see . CMStringW CDiscordProto::GetAvatarFilename(MCONTACT hContact) { CMStringW wszResult(FORMAT, L"%s\\%S", VARSW(L"%miranda_avatarcache%"), m_szModuleName); - - DWORD dwAttributes = GetFileAttributes(wszResult); - if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) - CreateDirectoryTreeW(wszResult); + CreateDirectoryTreeW(wszResult); wszResult.AppendChar('\\'); -- cgit v1.2.3