diff options
| author | Yash <[email protected]> | 2020-09-10 11:26:56 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-10 11:26:56 -0400 |
| commit | 6971c29c4a22981adeaee7f4b437c0cffe08c031 (patch) | |
| tree | 510543688f8126619527a927a349e692ed91c7ef | |
| parent | 81378bbcd8a1005f72b1e8d7579e5dd7b2d612ab (diff) | |
remove dead code for checking error nil (#282)
| -rw-r--r-- | string_array.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/string_array.go b/string_array.go index 4894af8..d1ff0a9 100644 --- a/string_array.go +++ b/string_array.go @@ -31,11 +31,7 @@ func (s *stringArrayValue) Append(val string) error { func (s *stringArrayValue) Replace(val []string) error { out := make([]string, len(val)) for i, d := range val { - var err error out[i] = d - if err != nil { - return err - } } *s.value = out return nil |
