Skip to content

Commit

Permalink
fix 'gofmt -s'
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored and tsandall committed Jun 6, 2018
1 parent 2f1526c commit 97755b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ast/parser_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func makeRule(loc *Location, head, rest interface{}) (interface{}, error) {
sl := rest.([]interface{})

rules := []*Rule{
&Rule{
{
Location: loc,
Head: head.(*Head),
Body: sl[0].(Body),
Expand Down
14 changes: 7 additions & 7 deletions cover/cover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ baz { # expect no exit
}

expectedCovered := []Position{
Position{5}, // foo head
Position{6}, Position{7}, // foo body
Position{10}, // bar head
Position{11}, Position{12}, Position{13}, // bar body
Position{17}, // baz body hits
{5}, // foo head
{6}, {7}, // foo body
{10}, // bar head
{11}, {12}, {13}, // bar body
{17}, // baz body hits
}

expectedNotCovered := []Position{
Position{16}, // baz head
Position{19}, // baz body miss
{16}, // baz head
{19}, // baz body miss
}

for _, exp := range expectedCovered {
Expand Down
2 changes: 1 addition & 1 deletion topdown/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ type saveStack struct {
func newSaveStack() *saveStack {
return &saveStack{
Stack: []saveStackQuery{
saveStackQuery{},
{},
},
}
}
Expand Down

0 comments on commit 97755b4

Please sign in to comment.