Skip to content

Commit

Permalink
Simplify type check expression in extensions generator
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Mar 8, 2023
1 parent e1c767f commit 899027a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bld/ExtensionsGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ from ns in baseImports.Concat(usings)
var classes =
from md in q
select md.Method.Syntax into md
group md by md.Identifier.Value is string id ? id : throw new NullReferenceException()
group md by md.Identifier.Value as string ?? throw new NullReferenceException()
into g
select new
{
Expand Down

0 comments on commit 899027a

Please sign in to comment.