Skip to content

Commit

Permalink
Format whitespaces according to dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
peter.wurzinger authored and peter.wurzinger committed Jun 4, 2024
1 parent 85aef00 commit 4ea2012
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Kiota.Builder/Writers/CSharp/TypeDefinitionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ private static StringBuilder AppendTypeName(ITypeDefinition typeDefinition, Stri
case null:
return fullNameBuilder;
case ITypeDefinition parentTypeDefinition:
{
fullNameBuilder.Insert(0, '.');
return AppendTypeName(parentTypeDefinition, fullNameBuilder);
}
{
fullNameBuilder.Insert(0, '.');
return AppendTypeName(parentTypeDefinition, fullNameBuilder);
}
case CodeNamespace codeNamespace:
{
if (!string.IsNullOrEmpty(codeNamespace.Name))
fullNameBuilder.Insert(0, $"{codeNamespace.Name}.");
{
if (!string.IsNullOrEmpty(codeNamespace.Name))
fullNameBuilder.Insert(0, $"{codeNamespace.Name}.");

return fullNameBuilder;
}
return fullNameBuilder;
}
default:
throw new InvalidOperationException($"Type {typeDefinition.Name} contains an invalid parent of type {typeDefinition.Parent.GetType().FullName}.");
}
Expand Down

0 comments on commit 4ea2012

Please sign in to comment.