Spelling (#240)
* spelling: cartesian * spelling: deferring * spelling: marshal
This commit is contained in:
parent
2f3187ebcd
commit
2097a3c017
3 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCartisianProduct(t *testing.T) {
|
func TestCartesianProduct(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
input := map[string][]interface{}{
|
input := map[string][]interface{}{
|
||||||
"foo": {1, 2, 3, 4},
|
"foo": {1, 2, 3, 4},
|
||||||
|
|
|
@ -422,7 +422,7 @@ func (cr *containerReference) copyDir(dstPath string, srcPath string) common.Exe
|
||||||
return err
|
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.
|
// to wait until all operations have completed.
|
||||||
f.Close()
|
f.Close()
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ func vmToJSON(vm *otto.Otto) {
|
||||||
toJSON := func(o interface{}) string {
|
toJSON := func(o interface{}) string {
|
||||||
rtn, err := json.MarshalIndent(o, "", " ")
|
rtn, err := json.MarshalIndent(o, "", " ")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorf("Unable to marsal: %v", err)
|
logrus.Errorf("Unable to marshal: %v", err)
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return string(rtn)
|
return string(rtn)
|
||||||
|
|
Loading…
Reference in a new issue