From 7e0009df299f5e53360e38f873b6c954bc9d7bf2 Mon Sep 17 00:00:00 2001 From: Dmitry Redkin Date: Thu, 1 Dec 2022 12:13:34 +0500 Subject: [PATCH] small refactor --- notifier/senders/selfstate/selfstate.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/notifier/senders/selfstate/selfstate.go b/notifier/senders/selfstate/selfstate.go index 495af2e3a..74a183e14 100644 --- a/notifier/senders/selfstate/selfstate.go +++ b/notifier/senders/selfstate/selfstate.go @@ -15,13 +15,10 @@ type Sender struct { // NewSender creates Sender instance. func NewSender(logger moira.Logger, db moira.Database) *Sender { - sender := &Sender{ + return &Sender{ Database: db, + logger: logger, } - - sender.logger = logger - - return sender } // SendEvents implements Sender interface Send