Skip to content

Commit

Permalink
- moves method invocation for clarity
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
  • Loading branch information
baywet committed Feb 8, 2022
1 parent 8ce76e0 commit c9512ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Refiners/CommonLanguageRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ protected static void ReplaceReservedNames(CodeElement current, IReservedNamesPr
!returnType.IsExternal &&
provider.ReservedNames.Contains(returnType.Name))
returnType.Name = replacement.Invoke(returnType.Name);
ReplaceReservedParameterNamesTypes(currentMethod, provider, replacement);
if(currentMethod.ErrorMappings.Values.Select(x => x.Name).Any(x => provider.ReservedNames.Contains(x)))
ReplaceErrorMappingNames(currentMethod, provider, replacement);
ReplaceReservedParameterNamesTypes(currentMethod, provider, replacement);
} else if (current is CodeProperty currentProperty &&
isNotInExceptions &&
shouldReplace &&
Expand Down

0 comments on commit c9512ab

Please sign in to comment.