Remove redundant builtin.TrimQuotes function

This commit is contained in:
Nigel Tao committed 2017-12-02 12:25:50 +11:00
1 parent 404b149a9a
commit 5f5791e56d
5 files changed
+5 -13

No files matched your search

+1 -1
View File
@@ -633,7 +633,7 @@ func (q *checker) tcheckExprOther(n *a.Expr, depth uint32) error {
if s, ok := q.c.statuses[n.ID1()]; ok {
declaredKeyword = s.Status.Keyword()
} else {
msg := builtin.TrimQuotes(n.ID1().Str(q.tm))
msg, _ := t.Unescape(n.ID1().Str(q.tm))
z, ok := builtin.StatusMap[msg]
if !ok {
return fmt.Errorf("check: no error or status with message %q", msg)