Commit f7a7a753 authored by Stan Hu's avatar Stan Hu

Add comment about why using `first`

parent 930b5e7a
...@@ -16,6 +16,8 @@ module BitbucketServer ...@@ -16,6 +16,8 @@ module BitbucketServer
end end
def browse_url def browse_url
# The JSON reponse contains an array of 1 element. Not sure if there
# are cases where multiple links would be provided.
raw.dig('links', 'self').first.fetch('href') raw.dig('links', 'self').first.fetch('href')
end 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