Skip to content

Commit

Permalink
Double splat hash to turn them into kwargs since it doesn't happen au…
Browse files Browse the repository at this point in the history
…tomatically anymore
  • Loading branch information
cjcolvar authored and masaball committed Aug 22, 2024
1 parent 13affe8 commit 8fe3f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browse_everything/driver/google_drive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def details(file, _path = '')
# @param path [String] the path (default to the root)
# @return [Array<BrowseEverything::FileEntry>] file entries for the path
def list_files(drive, request_params, path: '')
drive.list_files(request_params.to_h) do |file_list, error|
drive.list_files(**request_params.to_h) do |file_list, error|
# Raise an exception if there was an error Google API's
if error.present?
# In order to properly trigger reauthentication, the token must be cleared
Expand Down

0 comments on commit 8fe3f91

Please sign in to comment.