diff --git a/string.go b/string.go index 329fb12..ede8136 100644 --- a/string.go +++ b/string.go @@ -45,9 +45,5 @@ func (s *String) Load() string { // Note: Converting the string to an interface{} to store in the Value // requires an allocation. func (s *String) Store(str string) { - if str == "" { - s.v = Value{} - return - } s.v.Store(str) } diff --git a/string_test.go b/string_test.go index bf72505..91b793e 100644 --- a/string_test.go +++ b/string_test.go @@ -40,7 +40,4 @@ func TestString(t *testing.T) { atom = NewString("bcd") require.Equal(t, "bcd", atom.Load(), "Expected Load to return initialized value") - - atom.Store("") - require.Equal(t, "", atom.Load(), "Expected Load to return empty value") }