BigW Consortium Gitlab

Commit 0b72994b by Stan Hu

Simplify Bitbucket::Page implementation

parent 79534806
......@@ -23,7 +23,7 @@ module Bitbucket
end
def parse_values(raw, representation_class)
return [] if raw['values'].nil? || !raw['values'].is_a?(Array)
return [] unless raw['values'] && raw['values'].is_a?(Array)
raw['values'].map { |hash| representation_class.new(hash) }
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment