aboutsummaryrefslogtreecommitdiff
path: root/string_array.go
diff options
context:
space:
mode:
authorYash <[email protected]>2020-09-10 11:26:56 -0400
committerGitHub <[email protected]>2020-09-10 11:26:56 -0400
commit6971c29c4a22981adeaee7f4b437c0cffe08c031 (patch)
tree510543688f8126619527a927a349e692ed91c7ef /string_array.go
parent81378bbcd8a1005f72b1e8d7579e5dd7b2d612ab (diff)
remove dead code for checking error nil (#282)
Diffstat (limited to 'string_array.go')
-rw-r--r--string_array.go4
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