From 683637574b7b0adffb9c5b3bef99e136a396294a Mon Sep 17 00:00:00 2001 From: Stuart Turner Date: Tue, 13 Aug 2024 11:57:24 -0500 Subject: [PATCH] Address new net9 warning (#681) --- Source/SuperLinq/Memoize.cs | 2 +- Source/SuperLinq/Share.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SuperLinq/Memoize.cs b/Source/SuperLinq/Memoize.cs index 368f9995..7c2fd153 100644 --- a/Source/SuperLinq/Memoize.cs +++ b/Source/SuperLinq/Memoize.cs @@ -163,7 +163,7 @@ private IEnumerator GetEnumeratorImpl() if (_enumerator is null) break; - var moved = false; + bool moved; try { moved = _enumerator.MoveNext(); diff --git a/Source/SuperLinq/Share.cs b/Source/SuperLinq/Share.cs index 7a7eaf46..58ece067 100644 --- a/Source/SuperLinq/Share.cs +++ b/Source/SuperLinq/Share.cs @@ -122,7 +122,7 @@ private IEnumerator GetEnumeratorImpl() if (_enumerator is null) break; - var moved = false; + bool moved; try { moved = _enumerator.MoveNext();