Skip to content

Commit

Permalink
del shadow var
Browse files Browse the repository at this point in the history
  • Loading branch information
korovindenis committed Apr 14, 2024
1 parent e847a3f commit fb192a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions log/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (f Field) StringsValue() []string {
if !ok {
panic(fmt.Sprintf("unsupported type conversion from %T to []string", val))
}

return val
}

Expand All @@ -106,6 +107,7 @@ func (f Field) ErrorValue() error {
if !ok {
panic(fmt.Sprintf("unsupported type conversion from %T to error", val))
}

return val
}

Expand Down Expand Up @@ -145,6 +147,7 @@ func (f Field) Stringer() fmt.Stringer {
if !ok {
panic(fmt.Sprintf("unsupported type conversion from %T to fmt.Stringer", val))
}

return val
}

Expand Down

0 comments on commit fb192a3

Please sign in to comment.