lib/licensee/commands/diff.rb in licensee-9.15.1 vs lib/licensee/commands/diff.rb in licensee-9.15.2

- old
+ new

@@ -39,14 +39,12 @@ private def license_to_diff return options[:license_to_diff] if options[:license_to_diff] - return project.license_file if remote? || $stdin.tty? && project.license_file + return project.license_file if remote? || ($stdin.tty? && project.license_file) - @license_to_diff ||= begin - Licensee::ProjectFiles::LicenseFile.new($stdin.read, 'LICENSE') - end + @license_to_diff ||= Licensee::ProjectFiles::LicenseFile.new($stdin.read, 'LICENSE') end def expected_license @expected_license ||= Licensee::License.find options[:license] if options[:license] return @expected_license if @expected_license