Skip to content

Commit

Permalink
golint: fix
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <[email protected]>
  • Loading branch information
batazor committed Nov 23, 2023
1 parent bcfad95 commit 4e7da1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/logger/tracer/tracer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func TestZapFieldsToOpenTelemetry(t *testing.T) {
{
name: "ErrorField",
fields: []field.Fields{
// nolint: goerr113 // This is a mock error

Check failure on line 40 in internal/pkg/logger/tracer/tracer_test.go

View workflow job for this annotation

GitHub Actions / lint

directive `// nolint: goerr113 // This is a mock error` should be written without leading space as `//nolint: goerr113 // This is a mock error` (nolintlint)
{"errorKey": errors.New("mock error")},
},
want: []attribute.KeyValue{
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/types/queue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func (q *Queue[T]) Pop() (T, bool) {

v := q.data[0]
q.data = q.data[1:]

return v, true
}

Expand Down

0 comments on commit 4e7da1d

Please sign in to comment.