Skip to content

Commit

Permalink
fix: empty array instead of null
Browse files Browse the repository at this point in the history
Signed-off-by: Raúl Fernández Fernández <raulparri71@gmail.com>
  • Loading branch information
rfdez committed Feb 22, 2023
1 parent 195982a commit 0f00d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/platform/server/http/handlers/celebrations/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func GetHandler(queryBus query.Bus) gin.HandlerFunc {
return
}

var response []celebrationResponse
var response = make([]celebrationResponse, 0, len(celebrations))
for _, c := range celebrations {
response = append(response, celebrationResponse{
ID: c.ID(),
Expand Down

0 comments on commit 0f00d59

Please sign in to comment.