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