@@ -28,7 +28,7 @@ func (p *provider) AddAuthenticator(ctx context.Context, authenticators *models.
2828 authenticatorsCollection , _ := p .db .Collection (ctx , models .Collections .Authenticators )
2929 meta , err := authenticatorsCollection .CreateDocument (arangoDriver .WithOverwrite (ctx ), authenticators )
3030 if err != nil {
31- return authenticators , err
31+ return nil , err
3232 }
3333 authenticators .Key = meta .Key
3434 authenticators .ID = meta .ID .String ()
@@ -42,7 +42,7 @@ func (p *provider) UpdateAuthenticator(ctx context.Context, authenticators *mode
4242 collection , _ := p .db .Collection (ctx , models .Collections .Authenticators )
4343 meta , err := collection .UpdateDocument (ctx , authenticators .Key , authenticators )
4444 if err != nil {
45- return authenticators , err
45+ return nil , err
4646 }
4747
4848 authenticators .Key = meta .Key
@@ -59,7 +59,7 @@ func (p *provider) GetAuthenticatorDetailsByUserId(ctx context.Context, userId s
5959 }
6060 cursor , err := p .db .Query (ctx , query , bindVars )
6161 if err != nil {
62- return authenticators , err
62+ return nil , err
6363 }
6464 defer cursor .Close ()
6565 for {
@@ -71,7 +71,7 @@ func (p *provider) GetAuthenticatorDetailsByUserId(ctx context.Context, userId s
7171 }
7272 _ , err := cursor .ReadDocument (ctx , & authenticators )
7373 if err != nil {
74- return authenticators , err
74+ return nil , err
7575 }
7676 }
7777 return authenticators , nil
0 commit comments