fix error message when a go string-query fails to parse

This commit is contained in:
Ben Kraft
2021-04-05 17:48:34 -07:00
parent d880512499
commit 6404ba0e58
4 changed files with 33 additions and 2 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ func getQueriesFromGo(text string, basedir, filename string) ([]*ast.QueryDocume
}
var value string
value, err := strconv.Unquote(basicLit.Value)
value, err = strconv.Unquote(basicLit.Value)
if err != nil {
return false
}