Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Dec 15, 2024
1 parent f1293b7 commit 1694ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connector/internal/contenttype/xml_encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (c *XMLEncoder) encodeSimpleScalar(enc *xml.Encoder, name string, reflectVa
}
}

for i := 0; i < reflectValue.Len(); i++ {
for i := range reflectValue.Len() {
item := reflectValue.Index(i)
if err := c.encodeSimpleScalar(enc, name, item, attributes, append(fieldPaths, strconv.Itoa(i))); err != nil {
return err
Expand Down

0 comments on commit 1694ebf

Please sign in to comment.