Skip to content

Commit

Permalink
Replace string="" with string.IsNullOrEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiDeveloper committed Jan 24, 2025
1 parent 4d01b0d commit 99125f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DTAConfig/Settings/FileSourceDestinationInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void Revert()
string cacheHash = Utilities.CalculateSHA1ForFile(CachedPath);
string destinationHash = Utilities.CalculateSHA1ForFile(DestinationPath);

if (cacheHash != destinationHash && cacheHash != "")
if (cacheHash != destinationHash && !string.IsNullOrEmpty(cacheHash))
File.Copy(DestinationPath, CachedPath, true);

File.Delete(DestinationPath);
Expand Down

0 comments on commit 99125f8

Please sign in to comment.