fix staticcheck suggestions
This commit is contained in:
@@ -58,10 +58,8 @@ func (e Error) WithData(data map[string]interface{}) Error {
|
|||||||
if e.Data == nil {
|
if e.Data == nil {
|
||||||
e.Data = map[string]any{}
|
e.Data = map[string]any{}
|
||||||
}
|
}
|
||||||
if data != nil {
|
for key, value := range data {
|
||||||
for key, value := range data {
|
e.Data[key] = value
|
||||||
e.Data[key] = value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user