Commit d1540ae9 authored by Alex Kalderimis's avatar Alex Kalderimis

Allow for nil commit_author

parent 2a01cce5
...@@ -114,18 +114,18 @@ class MergeRequestDiffCommit < ApplicationRecord ...@@ -114,18 +114,18 @@ class MergeRequestDiffCommit < ApplicationRecord
end end
def author_name def author_name
commit_author.name commit_author&.name
end end
def author_email def author_email
commit_author.email commit_author&.email
end end
def committer_name def committer_name
committer.name committer&.name
end end
def committer_email def committer_email
committer.email committer&.email
end end
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