Skip to content

Commit

Permalink
Fix go vet complains
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogg committed Jul 21, 2016
1 parent 0158e11 commit 98b7c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cloudwatch/metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestDefaultMetricConfig(t *testing.T) {
config := DefaultMetricConfig()

if !reflect.DeepEqual(config, c.expected.config) {
t.Errorf("expected %q to be %q", config, c.expected.config)
t.Errorf("expected %v to be %v", config, c.expected.config)
}
}
}
Expand Down Expand Up @@ -93,15 +93,15 @@ func TestNewMetric(t *testing.T) {
}

if *metric.Data.MetricData[0].Value != c.expected.config.Value {
t.Errorf("expected %q to be %q", *metric.Data.MetricData[0].Value, c.expected.config.Value)
t.Errorf("expected %v to be %v", *metric.Data.MetricData[0].Value, c.expected.config.Value)
}

if *metric.Data.MetricData[0].Unit != c.expected.unit {
t.Errorf("expected %q to be %q", *metric.Data.MetricData[0].Unit, c.expected.unit)
}

if !reflect.DeepEqual(metric.config, c.expected.config) {
t.Errorf("expected %q to be %q", metric.config, c.expected.config)
t.Errorf("expected %v to be %v", metric.config, c.expected.config)
}
}
}
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func NewLogger() *Logger {
func (l *Logger) SetLevel(level string) {
lvl, err := logrus.ParseLevel(level)
if err != nil {
l.Fatal(`Not a valid level: "%s"`, level)
l.Fatal(fmt.Sprintf("Not a valid level: %s", level))
}
l.Log.Level = lvl
}
Expand Down

0 comments on commit 98b7c03

Please sign in to comment.