Skip to content

Commit

Permalink
removed unnecessary fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkern committed Mar 19, 2015
1 parent a17889e commit 787d521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ func (s *Server) createMeasurementsIfNotExists(database, retentionPolicy string,
if f := measurement.FieldByName(k); f != nil {
// Field present in Metastore, make sure there is no type conflict.
if f.Type != influxql.InspectDataType(v) {
return fmt.Errorf(fmt.Sprintf("field \"%s\" is type %T, mapped as type %s", k, v, f.Type))
return fmt.Errorf("field \"%s\" is type %T, mapped as type %s", k, v, f.Type)
}
continue // Field is present, and it's of the same type. Nothing more to do.
}
Expand Down

0 comments on commit 787d521

Please sign in to comment.