diff --git a/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs b/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs index 84b2e5a39..a5be6ecb6 100644 --- a/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs +++ b/InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs @@ -130,9 +130,8 @@ public void GenerateInterfaceStubs( // The interface has no refit methods, but its base interfaces might var hasDerivedRefit = ifaceSymbol.AllInterfaces - .SelectMany(i => i.GetMembers().OfType()) - .Where(m => IsRefitMethod(m, httpMethodBaseAttributeSymbol)) - .Any(); + .SelectMany(i => i.GetMembers().OfType()) + .Any(m => IsRefitMethod(m, httpMethodBaseAttributeSymbol)); if (hasDerivedRefit) {