fix typo
This commit is contained in:
@@ -204,8 +204,8 @@ public class UpdateClient(string updateUrl, AppVersion currentVersion, AppChanne
|
||||
|
||||
if (packageSource.PackageType == PackageType.File)
|
||||
srcFilePath = dataPath;
|
||||
else if (!string.IsNullOrWhiteSpace(packageSource.Address))
|
||||
srcFilePath = Path.Combine(dataPath, packageSource.Address);
|
||||
else if (!string.IsNullOrWhiteSpace(packageSource.Path))
|
||||
srcFilePath = Path.Combine(dataPath, packageSource.Path);
|
||||
else if (Directory.GetFiles(dataPath).FirstOrDefault() is { } firstFile)
|
||||
srcFilePath = firstFile;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user