Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
improvements on comments, unnecessary code & codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ramon committed Feb 23, 2016
1 parent 2d762fe commit 74b6775
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions influxdb_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
schemasFieldName string = "schemas" // Span's measurement field name for schemas field.
schemasFieldSeparator string = "," // Span's measurement character separator for schemas field.
spanMeasurementName string = "spans" // InfluxDB container name for trace spans.
testDBName string = "appdash_test" // InfluxDB test DB name.
testDBName string = "appdash_test" // InfluxDB test DB name (will be deleted entirely in test mode).
)

type mode int
Expand Down Expand Up @@ -368,10 +368,6 @@ func (in *InfluxDBStore) init(server *influxDBServer.Server) error {
return err
}
switch in.mode {
case releaseMode:
if err := in.setUpReleaseMode(); err != nil {
return err
}
case testMode:
if err := in.setUpTestMode(); err != nil {
return err
Expand Down Expand Up @@ -402,8 +398,8 @@ func (in *InfluxDBStore) setUpTestMode() error {
if err != nil {
return err
}
if response.Error() != nil {
return response.Error()
if err := response.Error(); err != nil {
return err
}
return nil
}
Expand Down

0 comments on commit 74b6775

Please sign in to comment.