aboutsummaryrefslogtreecommitdiff
path: root/httpd.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-01-26 15:46:23 +0700
committerShulhan <ms@kilabit.info>2025-02-08 15:28:44 +0700
commit77e055b2e0da5d76ca6651020f0eb990a6787e88 (patch)
treeb32e4aae63c1e036140d592164a09423052139a1 /httpd.go
parent3826603fb49edda796c2a5541b39b5bb00d3745c (diff)
downloadrescached-77e055b2e0da5d76ca6651020f0eb990a6787e88.tar.xz
internal/cmd/gocheck: add internal static analyzers
Instead of using binary fieldalignment and shadow, run them by creating command that call the same Analyzer internally. This analyzers help finding possible panic on httpd.go.
Diffstat (limited to 'httpd.go')
-rw-r--r--httpd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.go b/httpd.go
index f42a2b3..a313893 100644
--- a/httpd.go
+++ b/httpd.go
@@ -1348,7 +1348,7 @@ func (srv *Server) apiZonedRRAdd(epr *libhttp.EndpointRequest) (resb []byte, err
req.Type = strings.ToUpper(req.Type)
req.rtype, ok = dns.RecordTypes[req.Type]
if !ok {
- res.Message = fmt.Sprintf("invalid or empty RR type %q: %s", req.Type, err.Error())
+ res.Message = fmt.Sprintf(`invalid or empty RR type %q`, req.Type)
return nil, &res
}