summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZaneYork <ZaneYork@qq.com>2020-06-03 11:43:13 +0800
committerZaneYork <ZaneYork@qq.com>2020-06-03 11:43:13 +0800
commit9b41397a019e6cc32b5c1ab502fa4abdb9a9ef49 (patch)
treeec54a0fa1f64addd0a9b0c4c20ba2c26894de217 /src
parent6b4e52febbd69cc6b25735c96d89910d41e09d93 (diff)
downloadSMAPI-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')
-rw-r--r--src/SMAPI/Framework/ModLoading/Framework/RecursiveRewriter.cs1
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)
{