diff options
| author | Shulhan <ms@kilabit.info> | 2025-01-26 15:46:23 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-02-08 15:28:44 +0700 |
| commit | 77e055b2e0da5d76ca6651020f0eb990a6787e88 (patch) | |
| tree | b32e4aae63c1e036140d592164a09423052139a1 /httpd.go | |
| parent | 3826603fb49edda796c2a5541b39b5bb00d3745c (diff) | |
| download | rescached-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |
