Skip to content

Commit cff1e72

Browse files
authored
py: remove dead code
1 parent a0c0529 commit cff1e72

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

py/int.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,6 @@ func (a Int) M__truediv__(other Object) (Object, error) {
411411
return nil, err
412412
}
413413
fa := Float(a)
414-
if err != nil {
415-
return nil, err
416-
}
417414
fb := b.(Float)
418415
if fb == 0 {
419416
return nil, divisionByZero
@@ -427,9 +424,6 @@ func (a Int) M__rtruediv__(other Object) (Object, error) {
427424
return nil, err
428425
}
429426
fa := Float(a)
430-
if err != nil {
431-
return nil, err
432-
}
433427
fb := b.(Float)
434428
if fa == 0 {
435429
return nil, divisionByZero

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy