Browse files

Nicer return value when checking if the resource has been set

  • Loading branch information...
1 parent 81619af commit 37abd0226d876e444913630cb0842290df597783 @benlangfeld benlangfeld committed Aug 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/future-resource.rb
View
2 lib/future-resource.rb
@@ -8,7 +8,7 @@ def initialize
end
def set_yet?
- @resource_lock.synchronize { defined? @resource }
+ !!@resource_lock.synchronize { defined? @resource }
end
def resource

0 comments on commit 37abd02

Please sign in to comment.