Rename delete to del.

This commit is contained in:
Martin Dosch 2023-06-06 10:47:41 +02:00
parent 620130aded
commit 8a52c0ca44
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

4
ox.go
View File

@ -59,8 +59,8 @@ func oxDeleteNodes(jid string, client *xmpp.Client,
deleteNodeRequest.WriteSettings.AttrSingleQuote = true
pubsub := deleteNodeRequest.CreateElement("pubsub")
pubsub.CreateAttr("xmlns", nsPubsubOwner)
delete := pubsub.CreateElement("delete")
delete.CreateAttr("node", node.Value)
del := pubsub.CreateElement("delete")
del.CreateAttr("node", node.Value)
dnr, err := deleteNodeRequest.WriteToString()
if err != nil {
continue