fix lint error

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2022-08-13 07:40:32 +08:00
parent 18942e2a2c
commit 8690d63401
72 changed files with 170 additions and 111 deletions
+2 -1
View File
@@ -14,9 +14,10 @@ import (
"text/template"
"github.com/ghodss/yaml"
"golang.org/x/sync/errgroup"
"github.com/helmfile/helmfile/pkg/envvar"
"github.com/helmfile/helmfile/pkg/helmexec"
"golang.org/x/sync/errgroup"
)
type Values = map[string]interface{}
+2 -1
View File
@@ -4,8 +4,9 @@ import (
"fmt"
"sync"
"github.com/helmfile/helmfile/pkg/plugins"
"github.com/variantdev/vals"
"github.com/helmfile/helmfile/pkg/plugins"
)
// to generate mock run mockgen -source=expand_secret_ref.go -destination=expand_secrets_mock.go -package=tmpl
+1 -2
View File
@@ -2,11 +2,10 @@ package tmpl
import (
"errors"
"testing"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"testing"
)
func Test_fetchSecretValue(t *testing.T) {
+2 -1
View File
@@ -4,8 +4,9 @@
package tmpl
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockvalClient is a mock of valClient interface
+1 -2
View File
@@ -2,9 +2,8 @@ package tmpl
import (
"bytes"
"os"
"fmt"
"os"
"strings"
)