Commit f36655dc authored by Jeroen Bobbeldijk's avatar Jeroen Bobbeldijk

Dont return null

parent 27d2b355
......@@ -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
......
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