fix: missing return statement

This commit is contained in:
Michael Barz
2023-12-13 00:06:21 +01:00
parent 20fde30b7e
commit 703a116e43
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -97,6 +97,7 @@ func (g Graph) SetLinkPassword(w http.ResponseWriter, r *http.Request) {
newPermission, err := g.updatePublicLinkPassword(ctx, permissionID, password.GetPassword())
if err != nil {
errorcode.RenderError(w, r, err)
return
}
render.Status(r, http.StatusOK)