diff --git a/internal/core/target_index_test.go b/internal/core/target_index_test.go index 5b90c78b7..bf56b7486 100644 --- a/internal/core/target_index_test.go +++ b/internal/core/target_index_test.go @@ -79,8 +79,7 @@ func TestTargetIndexSet(t *testing.T) { t.Error(err) } - tt, err := TestMinimalTarget(t) - require.NoError(t, err) + tt := TestMinimalTarget(t) tt.target.Name = "newName" updated, err := ti.Set(tt)