fix rubocop 0.53 new complaints

This commit is contained in:
Mike Linksvayer 2018-03-12 17:03:25 -07:00
parent cce8e5d5f5
commit f2cb9ee977
3 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,8 @@ module Licensee
# Inverse of the confidence threshold, represented as a float
# By default this will be 0.05
def inverse_confidence_threshold
@inverse ||= (1 - Licensee.confidence_threshold / 100.0).round(2)
@inverse_confidence_threshold ||=
(1 - Licensee.confidence_threshold / 100.0).round(2)
end
end
end

View File

@ -41,7 +41,7 @@ class LicenseeCLI < Thor
return options[:license_to_diff] if options[:license_to_diff]
return project.license_file if remote?
@license_via_stdin ||= begin
@license_to_diff ||= begin
if STDIN.tty?
error 'You must pipe license contents to the command via STDIN'
exit 1

View File

@ -1,4 +1,4 @@
require File.expand_path('../lib/licensee/version', __FILE__)
require File.expand_path('lib/licensee/version', __dir__)
Gem::Specification.new do |gem|
gem.name = 'licensee'