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)