From a8dc1225848f7d3217704c7b31f793f3dacbc3eb Mon Sep 17 00:00:00 2001 From: AN Long Date: Fri, 27 Jun 2025 22:15:43 +0900 Subject: [PATCH] py: remove dead code --- py/int.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/py/int.go b/py/int.go index 919c28aa..511f1f88 100644 --- a/py/int.go +++ b/py/int.go @@ -411,9 +411,6 @@ func (a Int) M__truediv__(other Object) (Object, error) { return nil, err } fa := Float(a) - if err != nil { - return nil, err - } fb := b.(Float) if fb == 0 { return nil, divisionByZero @@ -427,9 +424,6 @@ func (a Int) M__rtruediv__(other Object) (Object, error) { return nil, err } fa := Float(a) - if err != nil { - return nil, err - } fb := b.(Float) if fa == 0 { return nil, divisionByZero