Merge pull request #719 from ZaneYork/develop

Bug fix: Provide seed to Aggregate op
This commit is contained in:
Jesse Plamondon-Willard 2020-06-04 18:56:27 -04:00 committed by GitHub
commit 74a8399b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ namespace StardewModdingAPI.Framework.ModLoading.Framework
return Tuple.Create(anyRewritten, e); return Tuple.Create(anyRewritten, e);
} }
}) })
.Aggregate((a, b) => Tuple.Create(a.Item1 || b.Item1, a.Item2 ?? b.Item2)); .Aggregate(Tuple.Create(false, null as Exception), (a, b) => Tuple.Create(a.Item1 || b.Item1, a.Item2 ?? b.Item2));
bool rewritten = result.Item1; bool rewritten = result.Item1;
Exception exception = result.Item2; Exception exception = result.Item2;