mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-28 05:56:37 +10:00
Dont return null
This commit is contained in:
@@ -896,7 +896,7 @@ class Repository
|
||||
end
|
||||
|
||||
def main_language
|
||||
return nil if empty? || rugged.head_unborn?
|
||||
return if empty? || rugged.head_unborn?
|
||||
|
||||
Linguist::Repository.new(rugged, rugged.head.target_id).language
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user