Commit d1540ae9 authored by Alex Kalderimis's avatar Alex Kalderimis

Allow for nil commit_author

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