Skip to content

Commit

Permalink
Fixes #3829
Browse files Browse the repository at this point in the history
Producing incompatible is not null check
  • Loading branch information
scottlocknet committed Nov 30, 2023
1 parent 1089ee9 commit 73b7ac1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal void AddParametersAssignment(LanguageWriter writer, CodeTypeBase pathPa
if (nameof(String).Equals(ct.Name, StringComparison.OrdinalIgnoreCase))
nullCheck = $"if (!string.IsNullOrWhiteSpace({identName})) ";
else
nullCheck = $"if ({identName} is not null) ";
nullCheck = $"if ({identName} != null) ";
}
return $"{nullCheck}{varName}.Add(\"{name}\", {identName});";
}).ToArray());
Expand Down

0 comments on commit 73b7ac1

Please sign in to comment.