From a08b968ef5396f11bc4b52d0883dabf47ddf389b Mon Sep 17 00:00:00 2001 From: Marco Ollivier Date: Mon, 20 May 2024 06:05:48 -0300 Subject: [PATCH] Remove impossible case to return nill --- type_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/type_test.go b/type_test.go index 5bd1a44..9ae9e76 100644 --- a/type_test.go +++ b/type_test.go @@ -50,9 +50,6 @@ func TestHsBool_Boolean(t *testing.T) { for _, test := range tests { result := hubspot.NewBoolean(test.input) - if result == nil { - t.Errorf("NewBoolean(%v) = nil; want *HsBool with value %v", test.input, test.expected) - } if *result != hubspot.HsBool(test.expected) { t.Errorf("NewBoolean(%v) = %v; want %v", test.input, *result, test.expected) }