Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Nicer return value when checking if the resource has been set

  • Loading branch information...
commit 37abd0226d876e444913630cb0842290df597783 1 parent 81619af
@benlangfeld benlangfeld authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.