chore: fix type assertion
This commit is contained in:
parent
fd5027ce9c
commit
b74d1bee22
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ func (l *logger) Log(keyVals ...interface{}) error {
|
|||
|
||||
if i%2 == 0 {
|
||||
// don't log if key is not a string or if key should be skipped
|
||||
if _, ok := v.(string); !ok || slices.Contains(skipped, v.(string)) {
|
||||
if s, ok := v.(string); !ok || slices.Contains(skipped, s) {
|
||||
skip = true
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue