Skip to content

Commit

Permalink
fixed 'go vet ./...' error in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom McSweeney committed Mar 30, 2017
1 parent 5708667 commit 5899b9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1280,8 +1280,7 @@ func buildSerializer(name string, tbl *ast.Table) (serializers.Serializer, error
if str, ok := kv.Value.(*ast.String); ok {
timestampVal, err := time.ParseDuration(str.Value)
if err != nil {
fmt.Errorf("Unable to parse json_timestamp_units as a duration, %s", err)
return nil, err
return nil, fmt.Errorf("Unable to parse json_timestamp_units as a duration, %s", err)
}
// now that we have a duration, truncate it to the nearest
// power of ten (just in case)
Expand Down

0 comments on commit 5899b9d

Please sign in to comment.