Skip to content

Commit f3f285b

Browse files
committed
Fix a string
1 parent 01e3aac commit f3f285b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/httpmw/userparam.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func ExtractUserParam(db database.Store) func(http.Handler) http.Handler {
3434
userQuery := chi.URLParam(r, "user")
3535
if userQuery == "" {
3636
httpapi.Write(rw, http.StatusBadRequest, httpapi.Response{
37-
Message: fmt.Sprintf("%q must be provided", "user"),
37+
Message: "\"user\" must be provided",
3838
})
3939
return
4040
}
@@ -67,7 +67,7 @@ func ExtractUserParam(db database.Store) func(http.Handler) http.Handler {
6767
// the user exists or not. Just lump all these errors into
6868
// something generic.
6969
httpapi.Write(rw, http.StatusBadRequest, httpapi.Response{
70-
Message: fmt.Sprint("\"user\" must be a uuid or username"),
70+
Message: "\"user\" must be a uuid or username",
7171
})
7272
return
7373
}

0 commit comments

Comments
 (0)