Skip to content

Commit 6971c29

Browse files
authored
remove dead code for checking error nil (#282)
1 parent 81378bb commit 6971c29

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

string_array.go

-4
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ func (s *stringArrayValue) Append(val string) error {
3131
func (s *stringArrayValue) Replace(val []string) error {
3232
out := make([]string, len(val))
3333
for i, d := range val {
34-
var err error
3534
out[i] = d
36-
if err != nil {
37-
return err
38-
}
3935
}
4036
*s.value = out
4137
return nil

0 commit comments

Comments
 (0)