Skip to content

Commit

Permalink
remove dead code for checking error nil (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashbhutwala committed Sep 10, 2020
1 parent 81378bb commit 6971c29
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions string_array.go
Expand Up @@ -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
Expand Down

0 comments on commit 6971c29

Please sign in to comment.