1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00

Fix misspellings in comments

Found by https://goreportcard.com/report/github.com/drone/drone
This commit is contained in:
Matthias Loibl 2016-03-27 01:14:00 +01:00
parent 310be64c3b
commit c039bc7a16
6 changed files with 7 additions and 7 deletions

View File

@ -216,7 +216,7 @@ func PostHook(c *gin.Context) {
log.Errorf("error setting commit status for %s/%d", repo.FullName, build.Number)
}
// get the previous build so taht we can send
// get the previous build so that we can send
// on status change notifications
last, _ := store.GetBuildLastBefore(c, repo, build.Branch, build.ID)

View File

@ -66,7 +66,7 @@ func Load(env envconfig.Env, s store.Store) Engine {
engine.pool = newPool()
engine.updater = &updater{engine.bus}
// quick fix to propogate HTTP_PROXY variables
// quick fix to propagate HTTP_PROXY variables
// throughout the build environment.
var proxyVars = []string{"HTTP_PROXY", "http_proxy", "HTTPS_PROXY", "https_proxy", "NO_PROXY", "no_proxy"}
for _, proxyVar := range proxyVars {

View File

@ -37,7 +37,7 @@ func Run(client dockerclient.Client, conf *dockerclient.ContainerConfig, name st
// the container to exit.
func RunDaemon(client dockerclient.Client, conf *dockerclient.ContainerConfig, name string) (*dockerclient.ContainerInfo, error) {
// attempts to create the contianer
// attempts to create the container
id, err := client.CreateContainer(conf, name, nil)
if err != nil {
// and pull the image and re-create if that fails

View File

@ -53,7 +53,7 @@ func ParseRequest(r *http.Request, fn SecretFunc) (*Token, error) {
return Parse(token, fn)
}
// and finally we attemt to get the token from
// and finally we attempt to get the token from
// the user session cookie
cookie, err := r.Cookie("user_sess")
if err != nil {

View File

@ -53,8 +53,8 @@ func toList(listof []*model.RepoLite) (string, []interface{}) {
return strings.Join(qs, ","), in
}
// helper function that converts a simple repsitory list
// to a sql IN statment compatible with postgres.
// helper function that converts a simple repository list
// to a sql IN statement compatible with postgres.
func toListPosgres(listof []*model.RepoLite) (string, []interface{}) {
var size = len(listof)
if size > 999 {

View File

@ -51,7 +51,7 @@ func Load() *template.Template {
}
// marshal is a helper function to render data as JSON
// inside the tempalte.
// inside the template.
func marshal(v interface{}) template.JS {
a, _ := json.Marshal(v)
return template.JS(a)