From 032bb0d3b454aa7e08ed3683752468fe76e9604b Mon Sep 17 00:00:00 2001 From: csuzhang Date: Wed, 3 Nov 2021 20:07:05 +0800 Subject: [PATCH] feat: make precommit --- semconv/v1.4.0/http_test.go | 2 +- semconv/v1.5.0/http_test.go | 2 +- semconv/v1.6.1/http_test.go | 2 +- semconv/v1.7.0/http_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/semconv/v1.4.0/http_test.go b/semconv/v1.4.0/http_test.go index 0b939e8ddeb..58d05edd739 100644 --- a/semconv/v1.4.0/http_test.go +++ b/semconv/v1.4.0/http_test.go @@ -868,7 +868,7 @@ func TestSpanStatusFromHTTPStatusCode(t *testing.T) { } } code, valid := validateHTTPStatusCode(400, trace.SpanKindServer) - if !valid{ + if !valid { assert.Equalf(t, codes.Unset, code, "message should be set if error cannot be inferred from code") } } diff --git a/semconv/v1.5.0/http_test.go b/semconv/v1.5.0/http_test.go index f3c3a288075..364688353c2 100644 --- a/semconv/v1.5.0/http_test.go +++ b/semconv/v1.5.0/http_test.go @@ -868,7 +868,7 @@ func TestSpanStatusFromHTTPStatusCode(t *testing.T) { } } code, valid := validateHTTPStatusCode(400, trace.SpanKindServer) - if !valid{ + if !valid { assert.Equalf(t, codes.Unset, code, "message should be set if error cannot be inferred from code") } } diff --git a/semconv/v1.6.1/http_test.go b/semconv/v1.6.1/http_test.go index 0c34ae36734..fc3f3632a5b 100644 --- a/semconv/v1.6.1/http_test.go +++ b/semconv/v1.6.1/http_test.go @@ -867,7 +867,7 @@ func TestSpanStatusFromHTTPStatusCode(t *testing.T) { } } code, valid := validateHTTPStatusCode(400, trace.SpanKindServer) - if !valid{ + if !valid { assert.Equalf(t, codes.Unset, code, "message should be set if error cannot be inferred from code") } } diff --git a/semconv/v1.7.0/http_test.go b/semconv/v1.7.0/http_test.go index 629efcece9a..7c369b6af48 100644 --- a/semconv/v1.7.0/http_test.go +++ b/semconv/v1.7.0/http_test.go @@ -868,7 +868,7 @@ func TestSpanStatusFromHTTPStatusCode(t *testing.T) { } } code, valid := validateHTTPStatusCode(400, trace.SpanKindServer) - if !valid{ + if !valid { assert.Equalf(t, codes.Unset, code, "message should be set if error cannot be inferred from code") } }