lib/github/result.rb in github-ds-0.2.0 vs lib/github/result.rb in github-ds-0.2.1

- old
+ new

@@ -13,10 +13,10 @@ # GitHub::Result.new { raise "oops" } # # => #<GitHub::Result error: #<RuntimeError: oops>> # def initialize begin - @value = yield + @value = yield if block_given? @error = nil rescue => e @error = e end end