Skip to content

Commit e227ef3

Browse files
authored
Merge pull request #39 from zenpk/fix_issue_38
Fixes #38
2 parents 180eb36 + dfc16c4 commit e227ef3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

conform.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ func Strings(iface interface{}) error {
247247
// allow strings and string pointers
248248
if isStringLike(elType) {
249249
tags := v.Tag.Get("conform")
250+
if len(tags) <= 0 {
251+
continue
252+
}
250253
for i := 0; i < el.Len(); i++ {
251254
el.Index(i).Set(transformValue(tags, el.Index(i)))
252255
}

0 commit comments

Comments
 (0)