Skip to content

Commit b44596a

Browse files
committed
removed an unnecessary check
possibly could still cause problems if 0 params is not specified as well
1 parent d557274 commit b44596a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/ClangSharp.PInvokeGenerator/CSharp/CSharpOutputBuilder.VisitDecl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public void BeginFunctionOrDelegate(in FunctionOrDelegateDesc desc, ref bool isM
372372
Write(desc.ParentName);
373373
Write('.');
374374
Write(desc.EscapedName);
375-
if (desc.ParameterTypes is not null && desc.ParameterTypes.Length > 0)
375+
if (desc.ParameterTypes is not null)
376376
{
377377
Write('(');
378378
Write(string.Join(", ", desc.ParameterTypes));

0 commit comments

Comments
 (0)