Skip to content

Commit

Permalink
fixed sonrarcloud alert
Browse files Browse the repository at this point in the history
  • Loading branch information
2403905 committed Aug 2, 2024
1 parent e0b31d4 commit 08d3950
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocis-pkg/l10n/l10n.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ func translateInner(value reflect.Value, tr func(string, ...any) string, fields
return
}
for _, fl := range fields {
switch fl.(type) {
switch fl := fl.(type) {
case field:
translateStringField(value, tr, fl.(field))
translateStringField(value, tr, fl)
case each:
translateEach(value, tr, fl.(each))
translateEach(value, tr, fl)
case structs:
translateStruct(value, tr, fl.(structs))
translateStruct(value, tr, fl)
}
}
}
Expand Down

0 comments on commit 08d3950

Please sign in to comment.