connector/login: rename variable
This commit is contained in:
@@ -103,10 +103,10 @@ func (dl *DiscordLogin) SubmitUserInput(ctx context.Context, input map[string]st
|
|||||||
log.Debug().Str("component", "discordgo").Msgf(strings.TrimSpace(format), a...) // zerolog-allow-msgf
|
log.Debug().Str("component", "discordgo").Msgf(strings.TrimSpace(format), a...) // zerolog-allow-msgf
|
||||||
}
|
}
|
||||||
|
|
||||||
cl := DiscordClient{
|
client := DiscordClient{
|
||||||
Session: session,
|
Session: session,
|
||||||
}
|
}
|
||||||
err = cl.connect(ctx)
|
err = client.connect(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
dl.softlyCloseSession()
|
dl.softlyCloseSession()
|
||||||
return nil, err
|
return nil, err
|
||||||
@@ -125,7 +125,7 @@ func (dl *DiscordLogin) SubmitUserInput(ctx context.Context, input map[string]st
|
|||||||
}, &bridgev2.NewLoginParams{
|
}, &bridgev2.NewLoginParams{
|
||||||
// We already have a Session; call this instead of the connector's main LoadUserLogin method and thread the Session through.
|
// We already have a Session; call this instead of the connector's main LoadUserLogin method and thread the Session through.
|
||||||
LoadUserLogin: func(ctx context.Context, login *bridgev2.UserLogin) error {
|
LoadUserLogin: func(ctx context.Context, login *bridgev2.UserLogin) error {
|
||||||
login.Client = &cl
|
login.Client = &client
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
DeleteOnConflict: true,
|
DeleteOnConflict: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user