Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Aug 16, 2022
1 parent 973e856 commit a84ad6c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/bigquery/insertall/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (bqc *Client) Flush() (err error) {
internalBQ.HttpInternalErrorFilter,
)
err = retryer.RetryOp(func(ctx context.Context) error {
// nolint: wrapcheck
//nolint: wrapcheck
return bqc.client.Put(ctx, bqc.rows)
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/bigquery/protobuf/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func BigQuerySchemaToProtobufDescripor(schema bigquery.Schema) (*descriptorpb.De
}
messageDescriptor, ok := descriptor.(protoreflect.MessageDescriptor)
if !ok {
// nolint: goerr113
//nolint: goerr113
return nil, errors.New("adapted descriptor is not a message descriptor")
}
protobufDescriptor, err := adapt.NormalizeDescriptor(messageDescriptor)
Expand Down
2 changes: 1 addition & 1 deletion internal/bigquery/storage/encoding/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func bqSchemaToProtoDesc(schema bigquery.Schema) (protoreflect.MessageDescriptor
}
messageDescriptor, ok := descriptor.(protoreflect.MessageDescriptor)
if !ok {
// nolint: goerr113
//nolint: goerr113
return nil, nil, errors.New("adapted descriptor is not a message descriptor")
}
return messageDescriptor, protodesc.ToDescriptorProto(messageDescriptor), nil
Expand Down
2 changes: 1 addition & 1 deletion internal/bigquery/storage/encoding/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (sm *simpleMessageJsonMarshaller) MarshalJSON() ([]byte, error) {
if sm.optValue != nil {
m["value"] = *sm.optValue
}
// nolint: wrapcheck
//nolint: wrapcheck
return json.Marshal(m)
}

Expand Down
2 changes: 1 addition & 1 deletion internal/test/integration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func testWorkerfunc(ctx context.Context, logger *Logger, testCh <-chan streamerT
if !ok {
return
}
// nolint: govet
//nolint: govet
testCtx, _ := context.WithTimeout(ctx, time.Second*10)
err := test(
testCtx,
Expand Down
2 changes: 1 addition & 1 deletion internal/test/integration/tmpdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (td *tmpData) MarshalJSON() ([]byte, error) {
if td.TimestampAsEpoch {
timestamp = td.Timestamp.UnixNano() / 1000
}
// nolint: wrapcheck
//nolint: wrapcheck
return json.Marshal(map[string]interface{}{
"name": td.Name,
"uuid": td.Uuid,
Expand Down

0 comments on commit a84ad6c

Please sign in to comment.