Skip to content

Commit 0a11050

Browse files
committed
One less attribution
1 parent f824e52 commit 0a11050

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

grumpy-runtime-src/runtime/builtin_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,8 @@ func builtinOrd(f *Frame, args Args, _ KWArgs) (*Object, *BaseException) {
547547
}
548548

549549
func builtinPower(f *Frame, args Args, kwargs KWArgs) (*Object, *BaseException) {
550-
argc := len(args)
551550
expectedTypes := []*Type{ObjectType, ObjectType}
552-
if argc == 3 {
551+
if len(args) == 3 {
553552
return nil, f.RaiseType(NotImplementedErrorType, "third parameter is not supported now")
554553
}
555554
if raised := checkFunctionArgs(f, "pow", args, expectedTypes...); raised != nil {

0 commit comments

Comments
 (0)