summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-09-09 15:13:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-09-09 15:13:17 +0300
commitebdca74fa7d38f83709345753df37f5cd6c420f1 (patch)
treebf0878abf269db73e4ef5e418170915fcccf425a /plugins/PluginUpdater
parentb9623b6f21855eaaa8136e1a4d582eebe8ae369d (diff)
useless code removed
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r--plugins/PluginUpdater/src/Utils.cpp4
1 files changed, 1 insertions, 3 deletions
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);
}
/////////////////////////////////////////////////////////////////////////////////////////