Skip to content

Commit acf141c

Browse files
chore(type) : remove capitalized error strings
1 parent 8efd503 commit acf141c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/api/admin_roles.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (app *application) adminAssignUserRoleHandler(w http.ResponseWriter, r *htt
3838
userIDStr := chi.URLParam(r, "userID")
3939
userID, err := strconv.ParseInt(userIDStr, 10, 64)
4040
if err != nil || userID <= 0 {
41-
app.badRequestResponse(w, r, fmt.Errorf("invalid userID"))
41+
app.badRequestResponse(w, r, fmt.Errorf("invalid userid"))
4242
return
4343
}
4444

@@ -48,7 +48,7 @@ func (app *application) adminAssignUserRoleHandler(w http.ResponseWriter, r *htt
4848
return
4949
}
5050
if in.RoleID <= 0 {
51-
app.badRequestResponse(w, r, fmt.Errorf("Invalid request"))
51+
app.badRequestResponse(w, r, fmt.Errorf("invalid request"))
5252
return
5353
}
5454

0 commit comments

Comments
 (0)