Browse Source

Redundant check

(copy pasted from the SFTP implementation, where it is needed)

Source commit: c0ac647a5f982ef55125d8d2fbca7bc9d8e20e5c
Martin Prikryl 3 years ago
parent
commit
e69b2bc2a6
1 changed files with 1 additions and 3 deletions
  1. 1 3
      source/core/FtpFileSystem.cpp

+ 1 - 3
source/core/FtpFileSystem.cpp

@@ -1260,9 +1260,7 @@ void __fastcall TFTPFileSystem::CalculateFilesChecksum(
         FTerminal->RollbackAction(Action, OperationProgress, &E);
 
         // Error formatting expanded from inline to avoid strange exceptions
-        UnicodeString Error =
-          FMTLOAD(CHECKSUM_ERROR,
-            (File != NULL ? File->FullFileName : UnicodeString(L"")));
+        UnicodeString Error = FMTLOAD(CHECKSUM_ERROR, (File->FullFileName));
         FTerminal->CommandError(&E, Error);
         // Abort loop.
         // TODO: retries? resume?