lib/github_api/jsonable.rb in github_api-0.10.1 vs lib/github_api/jsonable.rb in github_api-0.10.2
- old
+ new
@@ -5,9 +5,10 @@
module Github
module Jsonable
extend self
def decode(*args)
+ return unless args.first
if MultiJson.respond_to?(:load)
MultiJson.load *args
else
MultiJson.decode *args
end