mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 01:38:30 +02:00
fix: error formatting
This commit is contained in:
@@ -27,6 +27,10 @@ func PrependSubject(subject string, err error) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if subject == "" {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
//nolint:errorlint
|
//nolint:errorlint
|
||||||
switch err := err.(type) {
|
switch err := err.(type) {
|
||||||
case *withSubject:
|
case *withSubject:
|
||||||
|
|||||||
Reference in New Issue
Block a user