diff options
author | Stan Hu <stanhu@gmail.com> | 2016-11-21 08:25:47 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-11-21 16:47:30 -0800 |
commit | 0b72994b63dbbbddaf0e77629249d92890a6e4a4 (patch) | |
tree | bb8173c2ae5d8bd3029872a78706f400c216c159 /lib/bitbucket | |
parent | 7953480646b5b129868e4323502a28ce27328d8c (diff) | |
download | gitlab-ce-0b72994b63dbbbddaf0e77629249d92890a6e4a4.tar.gz |
Simplify Bitbucket::Page implementation
Diffstat (limited to 'lib/bitbucket')
-rw-r--r-- | lib/bitbucket/page.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitbucket/page.rb b/lib/bitbucket/page.rb index bc51ce7dce2..b91a173b53c 100644 --- a/lib/bitbucket/page.rb +++ b/lib/bitbucket/page.rb @@ -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 |