Skip to content

Commit

Permalink
Merge pull request #19 from mschoch/fix-bug-18
Browse files Browse the repository at this point in the history
fix bug introduced yesterday while fixing linting issues
  • Loading branch information
mschoch authored Jun 11, 2024
2 parents 31f24d1 + 44765c3 commit dd56e37
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,6 @@ type uploadGetRequest struct {
}

func decodeUploadGetRequest(ctx context.Context, r *http.Request) (interface{}, error) {
bodyBytes, err := io.ReadAll(r.Body)
if err != nil {
return nil, fmt.Errorf("error reading body: %w", err)
}
var metaRequest MetaRequest
err = json.Unmarshal(bodyBytes, &metaRequest)
if err != nil {
return nil, fmt.Errorf("error parsing meta json: %w", err)
}

return uploadGetRequest{
typ: r.FormValue("type"),
name: r.FormValue("name"),
Expand Down

0 comments on commit dd56e37

Please sign in to comment.