Skip to content

Commit

Permalink
gofmt: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sontags committed Jan 4, 2020
1 parent 033f07d commit 980351a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ var BpTestSets = []bpTestSet{
ID: "test_bp",
Availability: allDayLong,
Kpis: []KPI{
KPI{
{
Name: "TestKPI",
ID: "test_kpi",
Operation: "OR",
Services: []Service{
Service{Host: "Host", Service: "good"},
{Host: "Host", Service: "good"},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion internal/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (d Dashboard) Run() {

func (d Dashboard) getRoutes() map[string]Leafs {
return map[string]Leafs{
"v1": Leafs{
"v1": {
"whoami": Leaf{
E: Endpoints{
"GET": Endpoint{N: "WhoAmI", H: d.WhoamiHandler},
Expand Down
10 changes: 5 additions & 5 deletions internal/rules/rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

var testRules = map[string]Rules{
"base": Rules{
"base": {
10: Rule{
Must: []string{"bad"},
MustNot: []string{},
Expand All @@ -25,14 +25,14 @@ var testRules = map[string]Rules{
Then: status.StatusOK,
},
},
"additional": Rules{
"additional": {
15: Rule{
Must: []string{"unknown"},
MustNot: []string{},
Then: status.StatusUnknown,
},
},
"base+additional": Rules{
"base+additional": {
10: Rule{
Must: []string{"bad"},
MustNot: []string{},
Expand All @@ -54,14 +54,14 @@ var testRules = map[string]Rules{
Then: status.StatusOK,
},
},
"overwrite": Rules{
"overwrite": {
10: Rule{
Must: []string{"the worst"},
MustNot: []string{},
Then: status.StatusUnknown,
},
},
"base+overwrite": Rules{
"base+overwrite": {
10: Rule{
Must: []string{"the worst"},
MustNot: []string{},
Expand Down
2 changes: 1 addition & 1 deletion internal/store/influx/spans.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (i Influx) getSpans(rs store.ResultSet, start time.Time, end time.Time) ([]
func (i Influx) assumeSpans(rs store.ResultSet, start time.Time, end time.Time, interval time.Duration) ([]store.Span, error) {
duration := end.Sub(start).Seconds()
s := []store.Span{
store.Span{
{
Status: status.StatusOK,
Annotation: "",
Start: start,
Expand Down

0 comments on commit 980351a

Please sign in to comment.