mirror of https://github.com/licensee/licensee.git
fix rubocop 0.53 new complaints
This commit is contained in:
parent
cce8e5d5f5
commit
f2cb9ee977
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue