mirror of
https://github.com/harness/drone.git
synced 2025-05-19 02:20:03 +08:00
remove repetitive words (#3484)
This commit is contained in:
parent
3f823c2535
commit
d9b04d51c6
@ -23,7 +23,7 @@ import (
|
||||
)
|
||||
|
||||
// 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 {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
|
@ -62,7 +62,7 @@ func GetOptionalRemainderFromPath(r *http.Request) string {
|
||||
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) {
|
||||
return PathParamOrError(r, PathParamRemainder)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user