Skip to content

Commit bdfc728

Browse files
authored
Merge pull request #10 from wilcosheh/master
fix not work when having slices
2 parents 800d39f + 94c54a5 commit bdfc728

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

conform.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,11 @@ func Strings(iface interface{}) error {
171171
tags := v.Tag.Get("conform")
172172
slice[i] = transformString(input, tags)
173173
}
174-
return nil
175174
} else {
176175
val := reflect.ValueOf(el.Interface())
177176
for i := 0; i < val.Len(); i++ {
178177
Strings(val.Index(i).Addr().Interface())
179178
}
180-
return nil
181179
}
182180
}
183181
case reflect.Struct:

0 commit comments

Comments
 (0)