remove unecessary replace

This commit is contained in:
Michael Barz committed 2021-12-13 16:33:47 +01:00
1 parent 3e693495fb
commit 23458ba4b9
3 files changed
+4 -6

No files matched your search

+2 -2
View File
@@ -249,10 +249,10 @@ func (g Graph) CreateDrive(w http.ResponseWriter, r *http.Request) {
}
func (g Graph) UpdateDrive(w http.ResponseWriter, r *http.Request) {
driveID := chi.URLParam(r, "driveID")
driveID, err := url.PathUnescape(driveID)
driveID, err := url.PathUnescape(chi.URLParam(r, "driveID"))
if err != nil {
errorcode.InvalidRequest.Render(w, r, http.StatusBadRequest, "unescaping drive id failed")
return
}
if driveID == "" {