From ea5509198796aa495feefda2f8e4e943a3031686 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Thu, 27 Jun 2024 13:10:16 +0200 Subject: [PATCH] Update http_const.go --- internal/checkers/http_const.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/checkers/http_const.go b/internal/checkers/http_const.go index 021987bb..d93335ef 100644 --- a/internal/checkers/http_const.go +++ b/internal/checkers/http_const.go @@ -124,5 +124,6 @@ func newAnalysisDiagnostic( } func unquoteBasicLitValue(basicLit *ast.BasicLit) string { - return strconv.Unquote(basicLit.Value) + s, _ := strconv.Unquote(basicLit.Value) + return s }