lib/uv/resource.rb in uvrb-0.1.4 vs lib/uv/resource.rb in uvrb-0.2.0
- old
+ new
@@ -1,8 +1,8 @@
module UV
module Resource
def check_result(rc)
- @loop.lookup_error(rc) unless rc.nil? || rc >= 0
+ @loop.lookup_error(rc) if rc && rc < 0
end
def check_result!(rc)
e = check_result(rc)
raise e if e
\ No newline at end of file