Skip to content

Commit

Permalink
Fix a linter suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Nov 19, 2022
1 parent c200720 commit 0eeb133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func encode(obj meta.Object) (n yml.Node, err error) {
n.Kind = yml.MappingNode

// Sort the keys so the output order is predictable, making testing easier.
var keys []string
keys := make([]string, 0, len(obj.Map))
for key := range obj.Map {
keys = append(keys, key)
}
Expand Down

0 comments on commit 0eeb133

Please sign in to comment.