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
@@ -442,7 +442,7 @@ func (g *gen) writeExprOther(b *buffer, n *a.Expr, rp replacementPolicy, pp pare
case t.KeyError, t.KeyStatus, t.KeySuspension:
status := g.statusMap[n.ID1()]
if status.name == "" {
msg := builtin.TrimQuotes(n.ID1().Str(g.tm))
msg, _ := t.Unescape(n.ID1().Str(g.tm))
z := builtin.StatusMap[msg]
if z.Message == "" {
return fmt.Errorf("no status code for %q", msg)