Skip to content

Commit

Permalink
Improve variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
hantonelli committed Apr 19, 2019
1 parent b961d34 commit 43fc53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,13 +593,13 @@ func processMultipart(w http.ResponseWriter, r *http.Request, request *params, c
}
} else {
if r.ContentLength < uploadMaxMemory {
fileContent, err := ioutil.ReadAll(file)
fileBytes, err := ioutil.ReadAll(file)
if err != nil {
return fmt.Errorf("failed to read file for key %s", key)
}
for _, path := range paths {
upload = graphql.Upload{
File: bytes.NewReader(fileContent),
File: bytes.NewReader(fileBytes),
Size: header.Size,
Filename: header.Filename,
}
Expand Down

0 comments on commit 43fc53f

Please sign in to comment.