Skip to content

Commit

Permalink
Fixed nullable warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
prochnowc committed Oct 5, 2023
1 parent 5dcf05d commit d63f33f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions YamlDotNet.Analyzers.StaticGenerator/ClassSyntaxReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ public void OnVisitSyntaxNode(GeneratorSyntaxContext context)
}
}

private void AddSerializableClass(INamedTypeSymbol classSymbol)
private void AddSerializableClass(INamedTypeSymbol? classSymbol)
{
ClassObject classObject;
var className = SanitizeName(classSymbol.GetFullName());
var className = SanitizeName(classSymbol!.GetFullName());
if (Classes.ContainsKey(className))
{
classObject = Classes[className];
}
else
{
classObject = new ClassObject(className, classSymbol);
classObject = new ClassObject(className, classSymbol!);
Classes[className] = classObject;
}
while (classSymbol != null)
Expand Down

0 comments on commit d63f33f

Please sign in to comment.