From fe3dfb0d002ecb7821b52e6b7b83eebc393d9eed Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Thu, 29 Feb 2024 13:55:13 +0100 Subject: [PATCH] Add error as return parameter --- integrations/approval.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/approval.go b/integrations/approval.go index 584e58e..e63eb8e 100644 --- a/integrations/approval.go +++ b/integrations/approval.go @@ -8,8 +8,8 @@ import ( type IntegratedApprovalImpl struct { } -func NewIntegratedApproval() *IntegratedApprovalImpl { - return &IntegratedApprovalImpl{} +func NewIntegratedApproval() (*IntegratedApprovalImpl, error) { + return &IntegratedApprovalImpl{}, nil } func (v *IntegratedApprovalImpl) PreparePeer(_ string, peer *nbpeer.Peer, _ []string, _ *account.ExtraSettings) *nbpeer.Peer {