Skip to content

Commit

Permalink
fix: initialize array
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Aug 29, 2023
1 parent 556a8f4 commit 033e4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echo_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (svc *Service) AppsNewHandler(c echo.Context) error {
requestMethods := c.QueryParam("request_methods")
if requestMethods == "" {
// if no request methods are given, enable them all by default
keys := make([]string, 0, len(nip47MethodDescriptions))
keys := []string{}
for key := range nip47MethodDescriptions {
keys = append(keys, key)
}
Expand Down

0 comments on commit 033e4c8

Please sign in to comment.