mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Return null if there is no version to install
This commit is contained in:
@@ -147,7 +147,7 @@ namespace Squirrel
|
||||
|
||||
// If there are no deltas in our list, we're already done
|
||||
if (!releasesToApply.Any() || releasesToApply.All(x => !x.IsDelta)) {
|
||||
return releasesToApply.MaxBy(x => x.Version).First();
|
||||
return releasesToApply.MaxBy(x => x.Version).FirstOrDefault();
|
||||
}
|
||||
|
||||
if (!releasesToApply.All(x => x.IsDelta)) {
|
||||
|
||||
Reference in New Issue
Block a user