Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-11-21 19:25:47 +0300
committerStan Hu <stanhu@gmail.com>2016-11-22 03:47:30 +0300
commit0b72994b63dbbbddaf0e77629249d92890a6e4a4 (patch)
treebb8173c2ae5d8bd3029872a78706f400c216c159 /lib/bitbucket
parent7953480646b5b129868e4323502a28ce27328d8c (diff)
Simplify Bitbucket::Page implementation
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