mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 16:52:18 +01:00
Remove redundant builtin.TrimQuotes function
This commit is contained in:
1 parent
404b149a9a
commit
5f5791e56d
5 files changed
+5
-13
No files matched your search
+2
-2
@@ -22,7 +22,6 @@ import (
|
||||
"math/big"
|
||||
|
||||
"github.com/google/wuffs/lang/base38"
|
||||
"github.com/google/wuffs/lang/builtin"
|
||||
|
||||
a "github.com/google/wuffs/lang/ast"
|
||||
t "github.com/google/wuffs/lang/token"
|
||||
@@ -246,8 +245,9 @@ func (c *Checker) checkStatus(node *a.Node) error {
|
||||
n := node.Status()
|
||||
id := n.Message()
|
||||
if other, ok := c.statuses[id]; ok {
|
||||
s, _ := t.Unescape(id.Str(c.tm))
|
||||
return &Error{
|
||||
Err: fmt.Errorf("check: duplicate status %q", builtin.TrimQuotes(id.Str(c.tm))),
|
||||
Err: fmt.Errorf("check: duplicate status %q", s),
|
||||
Filename: n.Filename(),
|
||||
Line: n.Line(),
|
||||
OtherFilename: other.Status.Filename(),
|
||||
|
||||
Reference in new issue
Block a user