Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-burt committed Sep 5, 2024
1 parent 59944c1 commit 919cf44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vm/internal/ds/helm3/helm3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ func TestRunTemplate(t *testing.T) {
filePath := filepath.Join("testdata", "apache.json")
fileContent, err := ioutil.ReadFile(filePath)
t.Log(string(b))
templatedStr := string(templated)
templatedStr, ok := templated.(string)
require.NoError(t, ok)

Check failure on line 170 in vm/internal/ds/helm3/helm3_test.go

View workflow job for this annotation

GitHub Actions / Build(Windows)

cannot use ok (type bool) as type error in argument to require.NoError:
templatedUnixStr, ok := b.(string)

Check failure on line 171 in vm/internal/ds/helm3/helm3_test.go

View workflow job for this annotation

GitHub Actions / Build(Windows)

invalid type assertion: b.(string) (non-interface type []byte on left)
require.NoError(t, ok)

Check failure on line 172 in vm/internal/ds/helm3/helm3_test.go

View workflow job for this annotation

GitHub Actions / Build(Windows)

cannot use ok (type bool) as type error in argument to require.NoError:
templatedUnixStr := strings.ReplaceAll(templatedStr, "\r\n", "\n")

Check failure on line 173 in vm/internal/ds/helm3/helm3_test.go

View workflow job for this annotation

GitHub Actions / Build(Windows)

no new variables on left side of :=

Check failure on line 173 in vm/internal/ds/helm3/helm3_test.go

View workflow job for this annotation

GitHub Actions / Build(Windows)

undefined: strings
fileContentStr := string(fileContent)
fileContentUnixStr := strings.ReplaceAll(fileContentUnixStr, "\r\n", "\n")

Check failure on line 175 in vm/internal/ds/helm3/helm3_test.go

View workflow job for this annotation

GitHub Actions / Build(Windows)

undefined: strings

Check failure on line 175 in vm/internal/ds/helm3/helm3_test.go

View workflow job for this annotation

GitHub Actions / Build(Windows)

undefined: fileContentUnixStr
Expand Down

0 comments on commit 919cf44

Please sign in to comment.