Skip to content

Commit 59f9e6f

Browse files
committed
Add missing if
1 parent c54eff1 commit 59f9e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pycall/pyobject_wrapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def wrap_module(pymodptr)
201201
def check_isclass(pyptr)
202202
pyptr = pyptr.__pyptr__ if pyptr.kind_of? PyObjectWrapper
203203
return if pyptr.kind_of? LibPython::API::PyType_Type
204-
return defined?(LibPython::API::PyClass_Type) && pyptr.kind_of?(LibPython::API::PyClass_Type)
204+
return if defined?(LibPython::API::PyClass_Type) && pyptr.kind_of?(LibPython::API::PyClass_Type)
205205
raise TypeError, "PyType object is required"
206206
end
207207

0 commit comments

Comments
 (0)