diff --git a/src/Features/CSharp/Portable/InlineParameterNameHints/InlineParamNameHintsService.cs b/src/Features/CSharp/Portable/InlineParameterNameHints/InlineParamNameHintsService.cs index e6a2a05a70a4db79288613cddb885b32d66326d5..86bd145a25cd3ea82603dde19fadad2a03bd1a76 100644 --- a/src/Features/CSharp/Portable/InlineParameterNameHints/InlineParamNameHintsService.cs +++ b/src/Features/CSharp/Portable/InlineParameterNameHints/InlineParamNameHintsService.cs @@ -80,13 +80,13 @@ private static bool IsExpressionWithNoName(ExpressionSyntax arg) { // Recurse until we find a literal // If so, then we should add the adornment - IsExpressionWithNoName(cast.Expression); + return IsExpressionWithNoName(cast.Expression); } if (arg is PrefixUnaryExpressionSyntax negation) { // Recurse until we find a literal // If so, then we should add the adornment - IsExpressionWithNoName(negation.Operand); + return IsExpressionWithNoName(negation.Operand); } return false; }