Commit 27d2b355 authored by Jeroen Bobbeldijk's avatar Jeroen Bobbeldijk

Add changelog, change code to guard clause

parent 08c3936b
......@@ -35,6 +35,9 @@ v 8.7.0 (unreleased)
- ClosingIssueExtractor regex now also works with colons. e.g. "Fixes: #1234" !3591
- Update number of Todos in the sidebar when it's marked as "Done". !3600
v 8.6.6
- Fix error on language detection when repository has no HEAD (e.g., master branch). !3654
v 8.6.5
- Fix importing from GitHub Enterprise. !3529
- Perform the language detection after updating merge requests in `GitPushService`, leading to faster visual feedback for the end-user. !3533
......
......@@ -896,10 +896,10 @@ class Repository
end
def main_language
unless empty? or rugged.head_unborn?
return nil if empty? || rugged.head_unborn?
Linguist::Repository.new(rugged, rugged.head.target_id).language
end
end
def avatar
return nil unless exists?
......
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