remove repetitive words

Signed-off-by: cui fliter <imcusg@gmail.com>
pull/3342/head
cui fliter 2023-07-27 17:30:39 +08:00
parent b69bd618cc
commit 60e453e139
8 changed files with 12 additions and 8 deletions

View File

@ -47,7 +47,7 @@ type (
}
// StatusService sends the commit status to an external
// external source code management service (e.g. GitHub).
// source code management service (e.g. GitHub).
StatusService interface {
Send(ctx context.Context, user *User, req *StatusInput) error
}

View File

@ -25,7 +25,7 @@ import (
)
// HandleFind returns an http.HandlerFunc that writes json-encoded
// build details to the the response body.
// build details to the response body.
func HandleFind(
repos core.RepositoryStore,
builds core.BuildStore,

View File

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package crons
@ -16,7 +17,7 @@ import (
)
// HandleFind returns an http.HandlerFunc that writes json-encoded
// cronjob details to the the response body.
// cronjob details to the response body.
func HandleFind(
repos core.RepositoryStore,
crons core.CronStore,

View File

@ -29,7 +29,7 @@ import (
// FEATURE FLAG enables a static secret value used to sign
// incoming requests routed through a proxy. This was implemented
// based on feedback from @chiraggadasc and and should not be
// based on feedback from @chiraggadasc and should not be
// removed until we have a permanent solution in place.
var staticSigner = os.Getenv("DRONE_FEATURE_SERVER_PROXY_SECRET")

View File

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package secrets
@ -16,7 +17,7 @@ import (
)
// HandleFind returns an http.HandlerFunc that writes json-encoded
// secret details to the the response body.
// secret details to the response body.
func HandleFind(
repos core.RepositoryStore,
secrets core.SecretStore,

View File

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package secrets
@ -16,7 +17,7 @@ import (
)
// HandleFind returns an http.HandlerFunc that writes json-encoded
// secret details to the the response body.
// secret details to the response body.
func HandleFind(secrets core.GlobalSecretStore) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var (

View File

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !oss
// +build !oss
package template
@ -16,7 +17,7 @@ import (
)
// HandleFind returns an http.HandlerFunc that writes json-encoded
// template details to the the response body.
// template details to the response body.
func HandleFind(templateStore core.TemplateStore) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var (

View File

@ -26,7 +26,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(users core.UserStore) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
login := chi.URLParam(r, "user")