From b3cad8fe68a0a97c7961d180d45b44cb44c9304c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niko=20K=C3=B6ser?= <koeserniko@gmail.com>
Date: Wed, 10 Feb 2021 14:52:09 +0100
Subject: [PATCH] refactor(use): simplify useService function

---
 use.go | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/use.go b/use.go
index ca85ca3..71c54e4 100644
--- a/use.go
+++ b/use.go
@@ -2,10 +2,9 @@ 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)
 	}
-	n.notifiers = append(n.notifiers, service)
 }
 
 // UseServices adds the given service(s) to the Notifier's services list.