summaryrefslogtreecommitdiff
path: root/lib/bitbucket/representation/issue.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-12-07 11:33:32 +0200
committerValery Sizov <valery@gitlab.com>2016-12-07 11:33:32 +0200
commit67b7637e5d7d3cf3e3f5cde6e7f984ece368c48c (patch)
tree2418c8d6c0c369023e75d89dec785a5d8f4c0dff /lib/bitbucket/representation/issue.rb
parent43b7b0ce23d4de7055dc1cdd660b92ff03f4eb1e (diff)
downloadgitlab-ce-67b7637e5d7d3cf3e3f5cde6e7f984ece368c48c.tar.gz
Apply review comments. Iteration 1
Diffstat (limited to 'lib/bitbucket/representation/issue.rb')
-rw-r--r--lib/bitbucket/representation/issue.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bitbucket/representation/issue.rb b/lib/bitbucket/representation/issue.rb
index 48647ad51f6..dc034c19750 100644
--- a/lib/bitbucket/representation/issue.rb
+++ b/lib/bitbucket/representation/issue.rb
@@ -8,7 +8,7 @@ module Bitbucket
end
def author
- reporter.fetch('username', 'Anonymous')
+ raw.dig('reporter', 'username') || 'Anonymous'
end
def description
@@ -40,10 +40,6 @@ module Bitbucket
def closed?
CLOSED_STATUS.include?(raw['state'])
end
-
- def reporter
- raw.fetch('reporter', {})
- end
end
end
end