Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timwu authored and GregBowyer committed Aug 3, 2018
1 parent e6755b1 commit 2ad3803
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index_op_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package planout

import (
"testing"
"io/ioutil"
"encoding/json"
"io/ioutil"
"testing"
)

func getInterpreter(filename string) (*Interpreter, error) {
Expand All @@ -13,17 +13,17 @@ func getInterpreter(filename string) (*Interpreter, error) {
}
var js map[string]interface{}
err = json.Unmarshal(data, &js)
if (err != nil) {
if err != nil {
return nil, err
}

return &Interpreter{
Name: "the name",
Salt: "the salt",
Name: "the name",
Salt: "the salt",
Evaluated: false,
Inputs: make(map[string]interface{}),
Outputs: make(map[string]interface{}),
Code: js,
Inputs: make(map[string]interface{}),
Outputs: make(map[string]interface{}),
Code: js,
}, nil
}

Expand Down Expand Up @@ -57,7 +57,7 @@ func TestNestedIndex(t *testing.T) {
t.Fatal("Failed to run experiment")
}

if (exp.Outputs["out"] != "foo") {
if exp.Outputs["out"] != "foo" {
t.Fail()
}
}
Expand Down Expand Up @@ -134,4 +134,4 @@ func TestStructWithNilField(t *testing.T) {
if exp.Outputs["nil"] != nil {
t.Fail()
}
}
}

0 comments on commit 2ad3803

Please sign in to comment.