lib/licensee/commands/diff.rb in licensee-9.14.1 vs lib/licensee/commands/diff.rb in licensee-9.15.0
- old
+ new
@@ -47,12 +47,10 @@
Licensee::ProjectFiles::LicenseFile.new($stdin.read, 'LICENSE')
end
end
def expected_license
- if options[:license]
- @expected_license ||= Licensee::License.find options[:license]
- end
+ @expected_license ||= Licensee::License.find options[:license] if options[:license]
return @expected_license if @expected_license
if options[:license]
error "#{options[:license]} is not a valid license"
else