From 8a5d3ee09c141bb129bb50cdbca2b6afc99f10a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= Date: Fri, 5 Apr 2024 20:17:02 +0200 Subject: [PATCH] Omit unused attribute in XML tags in structs Not sure if this is an error or unused or was necessary, but the linter complained and it looked leftover. --- dlsir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlsir.go b/dlsir.go index d03b67f..19d8b43 100644 --- a/dlsir.go +++ b/dlsir.go @@ -79,7 +79,7 @@ type reason struct { type message struct { Action string `xml:"Action,omitempty"` - Reason reason `xml:"ReasonForContact,-"` + Reason reason `xml:"ReasonForContact"` Nonce string `xml:"nonce,attr"` MaxItems int `xml:"maxItems,attr,omitempty"` Fragment string `xml:"fragment,attr,omitempty"`