Pārlūkot izejas kodu

Remove unnecessary bool state

akarnokd 7 gadi atpakaļ
vecāks
revīzija
f40e71b2b5
1 mainītis faili ar 2 papildinājumiem un 12 dzēšanām
  1. 2 12
      Ix.NET/Source/System.Interactive/Retry.cs

+ 2 - 12
Ix.NET/Source/System.Interactive/Retry.cs

@@ -63,7 +63,6 @@ namespace System.Linq
 
                 using (enumerator)
                 {
-                    var continueOuter = false;
                     while (true)
                     {
                         var v = default(TSource);
@@ -78,17 +77,13 @@ namespace System.Linq
                         }
                         catch
                         {
-                            continueOuter = true;
                             break;
                         }
 
                         yield return v;
                     }
 
-                    if (continueOuter)
-                    {
-                        continue;
-                    }
+                    continue;
                 }
             }
         }
@@ -112,7 +107,6 @@ namespace System.Linq
 
                 using (enumerator)
                 {
-                    var continueOuter = false;
                     while (true)
                     {
                         var v = default(TSource);
@@ -128,17 +122,13 @@ namespace System.Linq
                         catch (Exception ex)
                         {
                             lastException = ex;
-                            continueOuter = true;
                             break;
                         }
 
                         yield return v;
                     }
 
-                    if (continueOuter)
-                    {
-                        continue;
-                    }
+                    continue;
                 }
             }