Dont return null

This commit is contained in:
Jeroen Bobbeldijk 2016-04-11 18:14:01 +02:00
parent 27d2b35535
commit f36655dc8b
1 changed files with 1 additions and 1 deletions

View File

@ -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