[golangci-lint]: Remove unused client.

errwrp
Martin Dosch 1 year ago
parent 7de155af64
commit a86970a796
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -16,7 +16,7 @@ func sendIQ(client *xmpp.Client, iqc chan xmpp.IQ, target string,
var iq xmpp.IQ
id := getID()
c := make(chan xmpp.IQ)
go getIQ(client, id, c, iqc)
go getIQ(id, c, iqc)
_, err := client.RawInformation(client.JID(), target, id,
iQtype, content+"\n")
if err != nil {
@ -26,7 +26,7 @@ func sendIQ(client *xmpp.Client, iqc chan xmpp.IQ, target string,
return iq, nil
}
func getIQ(client *xmpp.Client, id string, c chan xmpp.IQ,
func getIQ(id string, c chan xmpp.IQ,
iqc chan xmpp.IQ) {
for {
iq := <-iqc

Loading…
Cancel
Save