Return null if there is no version to install

This commit is contained in:
Paul Betts
2014-08-29 16:15:59 -07:00
parent 2b650a4d40
commit 2ffbe741f8

View File

@@ -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)) {