From ebdca74fa7d38f83709345753df37f5cd6c420f1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 9 Sep 2020 15:13:17 +0300 Subject: useless code removed --- plugins/PluginUpdater/src/Utils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/PluginUpdater/src') diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 8634b156e1..72d7e5fd4a 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -589,9 +589,7 @@ int BackupFile(wchar_t *pwszSrcFileName, wchar_t *pwszBackFileName) { SafeCreateFilePath(pwszBackFileName); - if (int iErrorCode = SafeMoveFile(pwszSrcFileName, pwszBackFileName)) - return iErrorCode; - return 0; + return SafeMoveFile(pwszSrcFileName, pwszBackFileName); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3