summaryrefslogtreecommitdiff
path: root/lib/bitbucket
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket')
-rw-r--r--lib/bitbucket/page.rb2
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