Skip to content

Commit

Permalink
Fix rubocop error
Browse files Browse the repository at this point in the history
Signed-off-by: Li Tai <ltai@pivotal.io>
  • Loading branch information
Vikram Yadav authored and xtreme-lisheng-tai committed Nov 15, 2018
1 parent 7d6f9da commit 5a6f911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/license_finder/package_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def log_to_file(contents)
FileUtils.mkdir_p @log_directory

# replace whitespace with underscores and remove slashes
log_file_name = self.class.package_management_command&.gsub(/\s/, '_')&.gsub(/\//,'')
log_file_name = self.class.package_management_command&.gsub(/\s/, '_')&.gsub(/\//, '')
log_file = File.join(@log_directory, "prepare_#{log_file_name || 'errors'}.log")

File.open(log_file, 'w') do |f|
Expand Down

0 comments on commit 5a6f911

Please sign in to comment.