summaryrefslogtreecommitdiff
path: root/lib/bitbucket/representation/issue.rb
diff options
context:
space:
mode:
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