Skip to content

Commit

Permalink
Remove unnecessary 'else'
Browse files Browse the repository at this point in the history
  • Loading branch information
WanjohiSammy committed Jul 3, 2024
1 parent 307c10d commit 38d644e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -753,10 +753,8 @@ internal override Task WriteBinaryTypeAttributesAsync(IEdmBinaryTypeReference re
{
return this.WriteRequiredAttributeAsync(CsdlConstants.Attribute_MaxLength, CsdlConstants.Value_Max, EdmValueWriter.StringAsXml);
}
else
{
return this.WriteOptionalAttributeAsync(CsdlConstants.Attribute_MaxLength, reference.MaxLength, EdmValueWriter.IntAsXml);
}

return this.WriteOptionalAttributeAsync(CsdlConstants.Attribute_MaxLength, reference.MaxLength, EdmValueWriter.IntAsXml);
}

/// <summary>
Expand Down Expand Up @@ -812,7 +810,8 @@ internal override Task WriteSpatialTypeAttributesAsync(IEdmSpatialTypeReference
{
return this.WriteOptionalAttributeAsync(CsdlConstants.Attribute_Srid, reference.SpatialReferenceIdentifier, CsdlConstants.Default_SpatialGeographySrid, SridAsXml);
}
else if (reference.IsGeometry())

if (reference.IsGeometry())
{
return this.WriteOptionalAttributeAsync(CsdlConstants.Attribute_Srid, reference.SpatialReferenceIdentifier, CsdlConstants.Default_SpatialGeometrySrid, SridAsXml);
}
Expand Down

0 comments on commit 38d644e

Please sign in to comment.