Skip to content

Commit

Permalink
chore: reverts refiner style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Dec 10, 2024
1 parent 395d7dc commit 2b088ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kiota.Builder/Refiners/TypeScriptRefiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ private static bool HasMultipartBody(CodeMethod m) =>
m.IsOfKind(CodeMethodKind.RequestExecutor, CodeMethodKind.RequestGenerator) &&
m.Parameters.Any(IsMultipartBody);
// for Kiota abstraction library if the code is not required for runtime purposes e.g. interfaces then the IsErasable flag is set to true
private static readonly AdditionalUsingEvaluator[] defaultUsingEvaluators = [
private static readonly AdditionalUsingEvaluator[] defaultUsingEvaluators = {
new (static x => x is CodeMethod method && method.Kind is CodeMethodKind.ClientConstructor,
AbstractionsPackageName, true, "RequestAdapter"),
new (static x => x is CodeMethod method && method.Kind is CodeMethodKind.RequestGenerator,
Expand Down Expand Up @@ -710,7 +710,7 @@ private static bool HasMultipartBody(CodeMethod m) =>
new (static x => (x is CodeProperty prop && prop.IsOfKind(CodePropertyKind.Custom) && prop.Type.Name.Equals(KiotaBuilder.UntypedNodeName, StringComparison.OrdinalIgnoreCase))
|| (x is CodeMethod method && (method.Parameters.Any(param => param.Kind is CodeParameterKind.RequestBody && param.Type.Name.Equals(KiotaBuilder.UntypedNodeName, StringComparison.OrdinalIgnoreCase)) || method.ReturnType.Name.Equals(KiotaBuilder.UntypedNodeName, StringComparison.OrdinalIgnoreCase))),
AbstractionsPackageName, true, KiotaBuilder.UntypedNodeName),
];
};
private const string MultipartBodyClassName = "MultipartBody";
private static void CorrectImplements(ProprietableBlockDeclaration block)
{
Expand Down

0 comments on commit 2b088ef

Please sign in to comment.