Fix misspellings in comments
Found by https://goreportcard.com/report/github.com/drone/drone
This commit is contained in:
parent
310be64c3b
commit
c039bc7a16
6 changed files with 7 additions and 7 deletions
|
@ -216,7 +216,7 @@ func PostHook(c *gin.Context) {
|
||||||
log.Errorf("error setting commit status for %s/%d", repo.FullName, build.Number)
|
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
|
// on status change notifications
|
||||||
last, _ := store.GetBuildLastBefore(c, repo, build.Branch, build.ID)
|
last, _ := store.GetBuildLastBefore(c, repo, build.Branch, build.ID)
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ func Load(env envconfig.Env, s store.Store) Engine {
|
||||||
engine.pool = newPool()
|
engine.pool = newPool()
|
||||||
engine.updater = &updater{engine.bus}
|
engine.updater = &updater{engine.bus}
|
||||||
|
|
||||||
// quick fix to propogate HTTP_PROXY variables
|
// quick fix to propagate HTTP_PROXY variables
|
||||||
// throughout the build environment.
|
// throughout the build environment.
|
||||||
var proxyVars = []string{"HTTP_PROXY", "http_proxy", "HTTPS_PROXY", "https_proxy", "NO_PROXY", "no_proxy"}
|
var proxyVars = []string{"HTTP_PROXY", "http_proxy", "HTTPS_PROXY", "https_proxy", "NO_PROXY", "no_proxy"}
|
||||||
for _, proxyVar := range proxyVars {
|
for _, proxyVar := range proxyVars {
|
||||||
|
|
|
@ -37,7 +37,7 @@ func Run(client dockerclient.Client, conf *dockerclient.ContainerConfig, name st
|
||||||
// the container to exit.
|
// the container to exit.
|
||||||
func RunDaemon(client dockerclient.Client, conf *dockerclient.ContainerConfig, name string) (*dockerclient.ContainerInfo, error) {
|
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)
|
id, err := client.CreateContainer(conf, name, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// and pull the image and re-create if that fails
|
// and pull the image and re-create if that fails
|
||||||
|
|
|
@ -53,7 +53,7 @@ func ParseRequest(r *http.Request, fn SecretFunc) (*Token, error) {
|
||||||
return Parse(token, fn)
|
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
|
// the user session cookie
|
||||||
cookie, err := r.Cookie("user_sess")
|
cookie, err := r.Cookie("user_sess")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -53,8 +53,8 @@ func toList(listof []*model.RepoLite) (string, []interface{}) {
|
||||||
return strings.Join(qs, ","), in
|
return strings.Join(qs, ","), in
|
||||||
}
|
}
|
||||||
|
|
||||||
// helper function that converts a simple repsitory list
|
// helper function that converts a simple repository list
|
||||||
// to a sql IN statment compatible with postgres.
|
// to a sql IN statement compatible with postgres.
|
||||||
func toListPosgres(listof []*model.RepoLite) (string, []interface{}) {
|
func toListPosgres(listof []*model.RepoLite) (string, []interface{}) {
|
||||||
var size = len(listof)
|
var size = len(listof)
|
||||||
if size > 999 {
|
if size > 999 {
|
||||||
|
|
|
@ -51,7 +51,7 @@ func Load() *template.Template {
|
||||||
}
|
}
|
||||||
|
|
||||||
// marshal is a helper function to render data as JSON
|
// marshal is a helper function to render data as JSON
|
||||||
// inside the tempalte.
|
// inside the template.
|
||||||
func marshal(v interface{}) template.JS {
|
func marshal(v interface{}) template.JS {
|
||||||
a, _ := json.Marshal(v)
|
a, _ := json.Marshal(v)
|
||||||
return template.JS(a)
|
return template.JS(a)
|
||||||
|
|
Loading…
Reference in a new issue