Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 1f55c3c

Browse files
committed
use double splat to explicitly convert a Hash into keyword argument
1 parent f9af7b1 commit 1f55c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pass_station/parse.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def csv_config
2626
# @return [CSV::Table] table of +CSV::Row+, each row contains three
2727
# attributes: :productvendor, :username, :password
2828
def parse(sort = :productvendor)
29-
@data = CSV.table(@database_path, @config).sort_by do |s|
29+
@data = CSV.table(@database_path, **@config).sort_by do |s|
3030
s[sort].downcase
3131
end
3232
end

0 commit comments

Comments
 (0)