Skip to content

Commit 8ba993e

Browse files
ndorinCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9fc8667 commit 8ba993e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PepperDash.Essentials.Core/Config/Essentials/ConfigUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static void MoveFilesToArchiveFolder(FileInfo[] files)
150150
// Directory exists, first clear any contents
151151
var archivedConfigFiles = ConfigReader.GetConfigFiles(archiveDirectoryPath + Global.DirectorySeparator + Global.ConfigFileName + ".bak");
152152

153-
if (archivedConfigFiles != null || archivedConfigFiles.Length > 0)
153+
if (archivedConfigFiles != null && archivedConfigFiles.Length > 0)
154154
{
155155
Debug.LogMessage(LogEventLevel.Information, "{0} Existing files found in archive folder. Deleting.", archivedConfigFiles.Length);
156156

0 commit comments

Comments
 (0)