This is an automated email from the ASF dual-hosted git repository. hoshea pushed a commit to branch verifier/query in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git
commit b30814ce80905dfb2d4694771c1492575ed1e495 Author: Hoshea <[email protected]> AuthorDate: Wed Mar 3 20:41:41 2021 +0800 Fix lint --- commands/verify/verify.go | 1 + internal/config/globalConfig.go | 6 +++--- internal/util/utils.go | 3 +-- internal/util/utils_test.go | 17 +++++++++++++++++ 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/commands/verify/verify.go b/commands/verify/verify.go index 1cfc8be..05ccbe0 100644 --- a/commands/verify/verify.go +++ b/commands/verify/verify.go @@ -19,6 +19,7 @@ package verify import ( "fmt" + "github.com/apache/skywalking-infra-e2e/internal/components/verifier" "github.com/apache/skywalking-infra-e2e/internal/config" "github.com/apache/skywalking-infra-e2e/internal/logger" diff --git a/internal/config/globalConfig.go b/internal/config/globalConfig.go index c2bf184..c796962 100644 --- a/internal/config/globalConfig.go +++ b/internal/config/globalConfig.go @@ -20,12 +20,12 @@ package config import ( "fmt" - "github.com/apache/skywalking-infra-e2e/internal/logger" "io/ioutil" - "gopkg.in/yaml.v2" - + "github.com/apache/skywalking-infra-e2e/internal/logger" "github.com/apache/skywalking-infra-e2e/internal/util" + + "gopkg.in/yaml.v2" ) // GlobalE2EConfig store E2EConfig which can be used globally. diff --git a/internal/util/utils.go b/internal/util/utils.go index 5559e11..fc5bda4 100644 --- a/internal/util/utils.go +++ b/internal/util/utils.go @@ -65,7 +65,6 @@ func ExecuteCommand(cmd string) (string, error) { } if err := command.Wait(); err != nil { return "", err - } else { - return outinfo.String(), nil } + return outinfo.String(), nil } diff --git a/internal/util/utils_test.go b/internal/util/utils_test.go index b098b15..1242516 100644 --- a/internal/util/utils_test.go +++ b/internal/util/utils_test.go @@ -1,3 +1,20 @@ +// Licensed to Apache Software Foundation (ASF) under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Apache Software Foundation (ASF) licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + package util import "testing"
