all: Fix check for empty string (#8456)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot]
2022-07-28 16:51:03 +02:00
committed by GitHub
co-authored by deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent a2c5d901f2
commit 80ec4acb53
11 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ func clear(v interface{}, since int) error {
tag := t.Field(i).Tag
v := tag.Get("since")
if len(v) == 0 {
if v == "" {
f.Set(reflect.Zero(f.Type()))
continue
}