Commit 0b72994b authored by Stan Hu's avatar Stan Hu
Browse files

Simplify Bitbucket::Page implementation

parent af572ab202e8
......@@ -23,7 +23,7 @@ def parse_attrs(raw)
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