Skip to content

Commit

Permalink
Fix error for empty args commands (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifercr07 authored Oct 7, 2024
1 parent d373641 commit 0005207
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions util/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ func newExtractor(r *http.Request) ([]string, error) {
return nil, err
}

if len(jsonBody) == 0 {
return nil, fmt.Errorf("empty JSON object")
}

for _, val := range jsonBody {
s, ok := val.(string)
if !ok {
Expand Down

0 comments on commit 0005207

Please sign in to comment.