diff options
author | ZaneYork <ZaneYork@qq.com> | 2020-06-03 11:43:13 +0800 |
---|---|---|
committer | ZaneYork <ZaneYork@qq.com> | 2020-06-03 11:43:13 +0800 |
commit | 9b41397a019e6cc32b5c1ab502fa4abdb9a9ef49 (patch) | |
tree | ec54a0fa1f64addd0a9b0c4c20ba2c26894de217 /src/SMAPI | |
parent | 6b4e52febbd69cc6b25735c96d89910d41e09d93 (diff) | |
download | SMAPI-9b41397a019e6cc32b5c1ab502fa4abdb9a9ef49.tar.gz SMAPI-9b41397a019e6cc32b5c1ab502fa4abdb9a9ef49.tar.bz2 SMAPI-9b41397a019e6cc32b5c1ab502fa4abdb9a9ef49.zip |
Remove take while op(does not return first none matched item)
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs b/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs index c03376d6..579c3a08 100644 --- a/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs +++ b/src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs @@ -119,7 +119,6 @@ namespace StardewModdingAPI.Framework.ModLoading.Framework return new Tuple<bool, Exception>(false, e.InnerException ?? e); } }) - .TakeWhile(tuple => tuple.Item2 == null) // Stop on any exception occurs .Aggregate((tupleA, tupleB) => new Tuple<bool, Exception>(tupleA.Item1 | tupleB.Item1, tupleA.Item2 ?? tupleB.Item2)); // Aggregate result and exception if (aggregateResult.Item2 != null) { |