Skip to content

Commit

Permalink
fixup! refactor(webdav): coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
bouassaba committed Jul 9, 2024
1 parent 079ba4f commit a1223fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webdav-go/handler/method_put.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ func (h *Handler) methodPut(w http.ResponseWriter, r *http.Request) {
infra.HandleError(err, w)
return
}
fileData, err := os.ReadFile(outputPath)
blob, err := os.ReadFile(outputPath)
if err != nil {
infra.HandleError(err, w)
return
}
blob := fileData
existingFile, err := apiClient.GetFileByPath(r.URL.Path)
if err == nil {
if _, err = apiClient.PatchFile(client.FilePatchOptions{
Expand Down

0 comments on commit a1223fa

Please sign in to comment.