Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisonB319 committed Apr 17, 2024
1 parent 3e0c5e4 commit bfaf1b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkg/agent/datamodel/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ func TestIndentString(t *testing.T) {
}
}


func TestTrimEOF(t *testing.T) {
tests := []struct {
name string
Expand All @@ -356,8 +355,8 @@ func TestTrimEOF(t *testing.T) {
}{
{
name: "Should remove #EOF at the end of a file",
input: []byte(`"versions":["1.26.6","1.26.10","1.26.12","1.27.3","1.27.7","1.27.9","1.28.1","1.28.3","1.28.5","1.29.0","1.29.2"]},"_template":{"fileName":"","downloadLocation":"","downloadURL":"","versions":[]}}` + "\n#EOF"),
expected: `"versions":["1.26.6","1.26.10","1.26.12","1.27.3","1.27.7","1.27.9","1.28.1","1.28.3","1.28.5","1.29.0","1.29.2"]},"_template":{"fileName":"","downloadLocation":"","downloadURL":"","versions":[]}}`,
input: []byte(`"versions":["1.26.6","1.26.10","1.26.12","1.27.3","1.27.7","1.27.9","1.28.1","1.28.3","1.28.5","1.29.0","1.29.2"]},"_template":{"fileName":"","downloadLocation":"","downloadURL":"","versions":[]}}` + "\n#EOF"), //nolint:lll
expected: `"versions":["1.26.6","1.26.10","1.26.12","1.27.3","1.27.7","1.27.9","1.28.1","1.28.3","1.28.5","1.29.0","1.29.2"]},"_template":{"fileName":"","downloadLocation":"","downloadURL":"","versions":[]}}`, //nolint:lll
},
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,4 +726,4 @@ var _ = Describe("Test removeComments", func() {
Expect(string(result)).To(Equal(expected))
})

})
})

0 comments on commit bfaf1b3

Please sign in to comment.