Skip to content

Commit

Permalink
Merge pull request #2021 from simonkern/master
Browse files Browse the repository at this point in the history
removed unnecessary fmt.Sprintf
  • Loading branch information
otoolep committed Mar 19, 2015
2 parents 16efacd + 787d521 commit 8f801ca
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 8f801ca

Please sign in to comment.