remove repetitive words (#3484)

This commit is contained in:
suchsoon 2024-04-20 07:28:04 +08:00 committed by GitHub
parent 3f823c2535
commit d9b04d51c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import (
) )
// HandleFind returns an http.HandlerFunc that writes json-encoded // HandleFind returns an http.HandlerFunc that writes json-encoded
// user account information to the the response body. // user account information to the response body.
func HandleFind(userCtrl *user.Controller) http.HandlerFunc { func HandleFind(userCtrl *user.Controller) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) { return func(w http.ResponseWriter, r *http.Request) {
ctx := r.Context() ctx := r.Context()

View File

@ -62,7 +62,7 @@ func GetOptionalRemainderFromPath(r *http.Request) string {
return PathParamOrEmpty(r, PathParamRemainder) return PathParamOrEmpty(r, PathParamRemainder)
} }
// GetRemainderFromPath returns the remainder ("*") from the path or an an error if it doesn't exist. // GetRemainderFromPath returns the remainder ("*") from the path or an error if it doesn't exist.
func GetRemainderFromPath(r *http.Request) (string, error) { func GetRemainderFromPath(r *http.Request) (string, error) {
return PathParamOrError(r, PathParamRemainder) return PathParamOrError(r, PathParamRemainder)
} }