Skip to content

Commit d409df8

Browse files
banjohKrzysztofDziankowski
authored andcommitted
Fix lint warning
Signed-off-by: Evans Mungai <[email protected]>
1 parent 6fdd101 commit d409df8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/chartutil/coalesce_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ func TestMergeValues(t *testing.T) {
395395
}
396396

397397
func TestCoalesceTables(t *testing.T) {
398-
is := assert.New(t)
399398
t.Run("case 1", func(t *testing.T) {
399+
is := assert.New(t)
400400
dst := map[string]interface{}{
401401
"name": "Ishmael",
402402
"address": map[string]interface{}{
@@ -449,7 +449,8 @@ func TestCoalesceTables(t *testing.T) {
449449
_, ok = dst["hole"]
450450
is.False(ok, "The hole should be removed")
451451
})
452-
t.Run("case 2", func(t *testing.T) {
452+
t.Run("case 2", func(_ *testing.T) {
453+
is := assert.New(t)
453454
dst2 := map[string]interface{}{
454455
"name": "Ishmael",
455456
"address": map[string]interface{}{
@@ -485,6 +486,7 @@ func TestCoalesceTables(t *testing.T) {
485486
is.Equal("black", dst2["hole"], "Expected hole string, got %v", dst2["hole"])
486487
})
487488
t.Run("chart values with nil user value", func(t *testing.T) {
489+
is := assert.New(t)
488490
dst := map[string]any{
489491
"foo": "bar",
490492
"baz": nil, // explicit nil from user

0 commit comments

Comments
 (0)