Skip to content

Commit f7ec9f8

Browse files
authored
Merge pull request #94 from kou/add-missing-if
Add missing if
2 parents f868bf6 + 59f9e6f commit f7ec9f8

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
@@ -178,7 +178,7 @@ def check_ismodule(pyptr)
178178
def check_isclass(pyptr)
179179
pyptr = pyptr.__pyptr__ if pyptr.kind_of? PyObjectWrapper
180180
return if pyptr.kind_of? LibPython::API::PyType_Type
181-
return defined?(LibPython::API::PyClass_Type) && pyptr.kind_of?(LibPython::API::PyClass_Type)
181+
return if defined?(LibPython::API::PyClass_Type) && pyptr.kind_of?(LibPython::API::PyClass_Type)
182182
raise TypeError, "PyType object is required"
183183
end
184184
end

0 commit comments

Comments
 (0)