Skip to content

Commit

Permalink
Fix misspellings in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
metalmatze committed Mar 27, 2016
1 parent 310be64 commit c039bc7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion controller/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion shared/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion shared/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions store/datastore/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c039bc7

Please sign in to comment.