From 2097a3c017a93c58437d7f7915fc60877e5d9e65 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 18 May 2020 12:53:42 -0400 Subject: [PATCH] Spelling (#240) * spelling: cartesian * spelling: deferring * spelling: marshal --- pkg/common/cartesian_test.go | 2 +- pkg/container/docker_run.go | 2 +- pkg/runner/expression.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/common/cartesian_test.go b/pkg/common/cartesian_test.go index a2add69..0d9332d 100644 --- a/pkg/common/cartesian_test.go +++ b/pkg/common/cartesian_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" ) -func TestCartisianProduct(t *testing.T) { +func TestCartesianProduct(t *testing.T) { assert := assert.New(t) input := map[string][]interface{}{ "foo": {1, 2, 3, 4}, diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go index 69731bf..09e3cf4 100644 --- a/pkg/container/docker_run.go +++ b/pkg/container/docker_run.go @@ -422,7 +422,7 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe return err } - // manually close here after each file operation; defering would cause each file close + // manually close here after each file operation; deferring would cause each file close // to wait until all operations have completed. f.Close() diff --git a/pkg/runner/expression.go b/pkg/runner/expression.go index 26c531e..30192b7 100644 --- a/pkg/runner/expression.go +++ b/pkg/runner/expression.go @@ -183,7 +183,7 @@ func vmToJSON(vm *otto.Otto) { toJSON := func(o interface{}) string { rtn, err := json.MarshalIndent(o, "", " ") if err != nil { - logrus.Errorf("Unable to marsal: %v", err) + logrus.Errorf("Unable to marshal: %v", err) return "" } return string(rtn)