Use modifier if

This commit is contained in:
Jim Hester 2016-09-23 08:45:10 -04:00
parent 7394be1e73
commit 46a6f9acec
1 changed files with 1 additions and 3 deletions

View File

@ -2,9 +2,7 @@ module Licensee
class Project
class PackageInfo < Licensee::Project::File
def possible_matchers
if filename == 'DESCRIPTION'
return [Matchers::Cran]
end
return [Matchers::Cran] if filename == 'DESCRIPTION'
case ::File.extname(filename)
when '.gemspec'
[Matchers::Gemspec]