From 1d2fbe5d392278da86a5543f0fc0f667b90c77d0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:41:47 +0000 Subject: [PATCH 1/2] Bump Meziantou.Analyzer from 2.0.163 to 2.0.169 Bumps [Meziantou.Analyzer](https://github.com/meziantou/Meziantou.Analyzer) from 2.0.163 to 2.0.169. - [Release notes](https://github.com/meziantou/Meziantou.Analyzer/releases) - [Commits](https://github.com/meziantou/Meziantou.Analyzer/compare/2.0.163...2.0.169) --- updated-dependencies: - dependency-name: Meziantou.Analyzer dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 95ec468c..8b6134e8 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -32,7 +32,7 @@ - + From f93d93e2195e57369bc744061b45fe8266bd6d02 Mon Sep 17 00:00:00 2001 From: Stuart Turner Date: Wed, 9 Oct 2024 09:44:15 -0500 Subject: [PATCH 2/2] Add missing commas --- Source/SuperLinq/Exclude.cs | 2 +- Source/SuperLinq/TrySingle.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SuperLinq/Exclude.cs b/Source/SuperLinq/Exclude.cs index 87334b26..79b6ace9 100644 --- a/Source/SuperLinq/Exclude.cs +++ b/Source/SuperLinq/Exclude.cs @@ -42,7 +42,7 @@ public static IEnumerable Exclude(this IEnumerable sequence, int startI (0, _) => sequence, (_, IList list) => new ExcludeListIterator(list, startIndex, count), (_, ICollection collection) => new ExcludeCollectionIterator(collection, startIndex, count), - _ => ExcludeCore(sequence, startIndex, count) + _ => ExcludeCore(sequence, startIndex, count), }; } diff --git a/Source/SuperLinq/TrySingle.cs b/Source/SuperLinq/TrySingle.cs index fad73003..e0d074ad 100644 --- a/Source/SuperLinq/TrySingle.cs +++ b/Source/SuperLinq/TrySingle.cs @@ -135,7 +135,7 @@ public static TResult TrySingle( return n switch { 1 => source.First(), - 0 or _ => default + 0 or _ => default, }; } else