aboutsummaryrefslogtreecommitdiff
path: root/ast/modify_test.go
diff options
context:
space:
mode:
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)
}