[#384] Add check of Notificator interface value

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2022-03-25 15:13:54 +04:00 committed by Kirillov Denis
parent f0914b8a43
commit 83bb6fc020
3 changed files with 11 additions and 20 deletions

View file

@ -281,10 +281,6 @@ func (n *layer) EphemeralKey() *keys.PublicKey {
}
func (n *layer) Initialize(ctx context.Context, c Notificator) error {
if c == nil {
return nil
}
if n.IsNotificationEnabled() {
return fmt.Errorf("already initialized")
}