mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
fix(push): address comments
This commit is contained in:
@ -140,18 +140,3 @@ func IsVoidProcessorError(err error) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// extractNotificationName attempts to extract the notification name from error messages
|
||||
func extractNotificationName(err error) string {
|
||||
if handlerErr, ok := err.(*HandlerError); ok {
|
||||
if handlerErr.PushNotificationName != "" {
|
||||
return handlerErr.PushNotificationName
|
||||
}
|
||||
}
|
||||
if procErr, ok := err.(*ProcessorError); ok {
|
||||
if procErr.PushNotificationName != "" {
|
||||
return procErr.PushNotificationName
|
||||
}
|
||||
}
|
||||
return "unknown"
|
||||
}
|
||||
|
Reference in New Issue
Block a user