Dont return null
This commit is contained in:
parent
27d2b35535
commit
f36655dc8b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue