Skip to content

Commit b96eb2a

Browse files
committed
fix linting errors
Signed-off-by: Eliott Bouhana <[email protected]>
1 parent 045c06d commit b96eb2a

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.4.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- repo: https://github.com/golangci/golangci-lint
9+
rev: v1.63.1
10+
hooks:
11+
- id: golangci-lint
12+
args:
13+
- --timeout=1h

ddtrace/tracer/telemetry_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ func TestTelemetryEnabled(t *testing.T) {
121121
var cfgs []telemetry.Configuration
122122
for _, c := range telemetryClient.Configuration {
123123
c.Value = telemetry.SanitizeConfigValue(c.Value)
124-
cfgs = append(cfgs)
125124
}
126125
telemetrytest.CheckConfig(t, cfgs, "trace_sample_rules", "[]")
127126
telemetrytest.CheckConfig(t, cfgs, "span_sample_rules", "[]")

internal/civisibility/utils/telemetry/telemetry_count.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,5 @@ func KnownTestsRequest(requestCompressed RequestCompressedType) {
208208

209209
// KnownTestsRequestErrors the number of requests sent to the known tests endpoint that errored, tagged by the error type.
210210
func KnownTestsRequestErrors(errorType ErrorType) {
211-
telemetry.Count(telemetry.NamespaceCIVisibility, "known_tests.request_errors", removeEmptyStrings(errorType)).Submit(1.0)
211+
telemetry.Count(telemetry.NamespaceCIVisibility, "known_tests.request_errors", removeEmptyStrings(errorType)).Submit(1.0)
212212
}

0 commit comments

Comments
 (0)