mirror of
https://github.com/nikoksr/notify.git
synced 2025-07-03 00:57:51 +02:00
refactor(use): simplify useService function
This commit is contained in:
5
use.go
5
use.go
@ -2,11 +2,10 @@ package notify
|
||||
|
||||
// useService adds a given service to the Notifier's services list.
|
||||
func (n *Notify) useService(service Notifier) {
|
||||
if service == nil {
|
||||
return
|
||||
}
|
||||
if service != nil {
|
||||
n.notifiers = append(n.notifiers, service)
|
||||
}
|
||||
}
|
||||
|
||||
// UseServices adds the given service(s) to the Notifier's services list.
|
||||
func (n *Notify) UseServices(service ...Notifier) {
|
||||
|
Reference in New Issue
Block a user