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
+1
View File
@@ -137,6 +137,7 @@ type meta struct {
namespace string
}
// nolint: unparam
func (res resource) getMeta() (meta, error) {
if len(res) == 0 {
return meta{}, nil
+2 -1
View File
@@ -6,8 +6,9 @@ import (
"testing"
"text/template"
"github.com/helmfile/helmfile/pkg/tmpl"
"github.com/stretchr/testify/require"
"github.com/helmfile/helmfile/pkg/tmpl"
)
type tmplTestCase struct {
-1
View File
@@ -4,7 +4,6 @@ import (
"fmt"
"io"
"os"
"strings"
"github.com/jessevdk/go-flags"