remove unecessary replace

This commit is contained in:
Michael Barz
2021-12-13 16:33:47 +01:00
parent 3e693495fb
commit 23458ba4b9
3 changed files with 4 additions and 6 deletions
+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 == "" {