From 6321d0d76e91a312b409a32df4f4ebe6193cd290 Mon Sep 17 00:00:00 2001 From: my-git9 Date: Tue, 19 Jul 2022 16:40:57 +0800 Subject: [PATCH] [testbed/datareceivers ] enable gocritic (#12506) enable gocritic in testbed/datareceivers Signed-off-by: xin.li --- testbed/datareceivers/mockawsxraydatareceiver.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testbed/datareceivers/mockawsxraydatareceiver.go b/testbed/datareceivers/mockawsxraydatareceiver.go index 27c3d75a33eb..78e66809b539 100644 --- a/testbed/datareceivers/mockawsxraydatareceiver.go +++ b/testbed/datareceivers/mockawsxraydatareceiver.go @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// nolint:gocritic package datareceivers // import "github.com/open-telemetry/opentelemetry-collector-contrib/testbed/datareceivers" import ( @@ -43,7 +42,7 @@ func NewMockAwsXrayDataReceiver(port int) *MockAwsXrayDataReceiver { return &MockAwsXrayDataReceiver{DataReceiverBase: testbed.DataReceiverBase{Port: port}} } -//Start listening on the specified port +// Start listening on the specified port func (ar *MockAwsXrayDataReceiver) Start(tc consumer.Traces, _ consumer.Metrics, _ consumer.Logs) error { var err error os.Setenv("AWS_ACCESS_KEY_ID", "AWS_ACCESS_KEY_ID")