Skip to content

Commit

Permalink
[testbed/datareceivers ] enable gocritic (#12506)
Browse files Browse the repository at this point in the history
enable gocritic in testbed/datareceivers

Signed-off-by: xin.li <xin.li@daocloud.io>
  • Loading branch information
my-git9 authored Jul 19, 2022
1 parent 433cb30 commit 6321d0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testbed/datareceivers/mockawsxraydatareceiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 6321d0d

Please sign in to comment.