Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from neotoolkit/refactor/schema
Browse files Browse the repository at this point in the history
refactor(schema): remove append
  • Loading branch information
sashamelentyev authored Feb 5, 2022
2 parents a16d041 + 6fd2276 commit 20de6c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ func (s Schema) propertiesExamples(schemaContext SchemaContext) (interface{}, er
return nil, fmt.Errorf("response from items: %w", err)
}

var res []interface{}
res = append(res, resp)
res := []interface{}{resp}

return res, nil
}
Expand Down

0 comments on commit 20de6c6

Please sign in to comment.