aboutsummaryrefslogtreecommitdiff
path: root/ast/modify_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <sokolyuk@gmail.com>2022-08-24 13:50:19 +0200
committerDimitri Sokolyuk <sokolyuk@gmail.com>2022-08-24 13:50:19 +0200
commitcb3d5e76156cb87d14f048c1ef651b9674e865a5 (patch)
treec9723e7a32ae4707fe6fa8125283efdd2b5f7b17 /ast/modify_test.go
parente402c1c42d91e956513122029ace1f513334a1fb (diff)
kiss
Diffstat (limited to 'ast/modify_test.go')
-rw-r--r--ast/modify_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast/modify_test.go b/ast/modify_test.go
index 6b5019f..20fe907 100644
--- a/ast/modify_test.go
+++ b/ast/modify_test.go
@@ -140,11 +140,11 @@ func TestModify(t *testing.T) {
Modify(hashLiteral, turnOneIntoTwo)
for key, val := range hashLiteral.Pairs {
- key, _ := key.(*IntegerLiteral)
+ key := key.(*IntegerLiteral)
if key.Value != 2 {
t.Errorf("value is not %d, got=%d", 2, key.Value)
}
- val, _ := val.(*IntegerLiteral)
+ val := val.(*IntegerLiteral)
if val.Value != 2 {
t.Errorf("value is not %d, got=%d", 2, val.Value)
}