mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
Fix deprecation warning on Ruby 2.7
``` lib/colorls/flags.rb:50: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call lib/colorls/core.rb:5: warning: The called method `initialize is defined here ```
This commit is contained in:
parent
ee54e9ba22
commit
d4aa862f79
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ module ColorLS
|
|||
|
||||
puts '' if i.positive?
|
||||
puts "\n#{path}:" if Dir.exist?(path) && @args.size > 1
|
||||
Core.new(path, @opts).ls
|
||||
Core.new(path, **@opts).ls
|
||||
rescue SystemCallError => e
|
||||
STDERR.puts "#{path}: #{e}".colorize(:red)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue