Skip to content

Commit

Permalink
Removed method call with no side-effects
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Jan 8, 2025
1 parent 98e7919 commit fc6cb76
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Kiota.Builder/Writers/Dart/CodeMethodWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ private void WriteFactoryMethodBodyForIntersectionModel(CodeMethod codeElement,
{
if (property.Type is CodeType propertyType)
{
conventions.GetTypeString(propertyType, codeElement, true, false);
var check = propertyType.IsCollection ? ".isNotEmpty" : " != null";
writer.StartBlock($"{(includeElse ? "else " : string.Empty)}if({parseNodeParameter.Name}.{GetDeserializationMethodName(propertyType, codeElement)}{check}) {{");
writer.WriteLine($"{ResultVarName}.{property.Name} = {parseNodeParameter.Name}.{GetDeserializationMethodName(propertyType, codeElement)};");
Expand Down

0 comments on commit fc6cb76

Please sign in to comment.