Skip to content

Commit 687c1b8

Browse files
committed
chore: simplify
1 parent 140f71a commit 687c1b8

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

modules/influxdb/influxdb.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,7 @@ func withV2(req *testcontainers.GenericContainerRequest, org, bucket string) err
115115
// WithV2 configures the influxdb container to be compatible with InfluxDB v2
116116
func WithV2(org, bucket string) testcontainers.CustomizeRequestOption {
117117
return func(req *testcontainers.GenericContainerRequest) error {
118-
err := withV2(req, org, bucket)
119-
if err != nil {
120-
return err
121-
}
122-
123-
return nil
118+
return withV2(req, org, bucket)
124119
}
125120
}
126121

0 commit comments

Comments
 (0)