From baabf144631bf0292852882035ac2a700208d7a4 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sat, 22 May 2021 18:36:28 -0400 Subject: [PATCH] autojoin: better var name --- autojoin/cmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autojoin/cmd.go b/autojoin/cmd.go index 4622219..4981769 100644 --- a/autojoin/cmd.go +++ b/autojoin/cmd.go @@ -23,12 +23,12 @@ func init() { } func autojoin() error { - data, err := shared.GetAuthInfo() + authInfo, err := shared.GetAuthInfo() if err != nil { return err } - client, err := mautrix.NewClient(data.Homeserver, data.UserID, data.AccessToken) + client, err := mautrix.NewClient(authInfo.Homeserver, authInfo.UserID, authInfo.AccessToken) if err != nil { return err } @@ -38,7 +38,7 @@ func autojoin() error { syncer.OnEventType(event.StateMember, func(_ mautrix.EventSource, event *event.Event) { // skip non-member events and member events that don't pertain // to us - if *event.StateKey != data.UserID.String() || event.Type.Type != "m.room.member" { + if *event.StateKey != authInfo.UserID.String() || event.Type.Type != "m.room.member" { return } content := event.Content.AsMember() -- 2.38.4