Skip to content

Commit 8dcfc6c

Browse files
committed
fix format option bug
1 parent 5e61078 commit 8dcfc6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/imagekitio/file.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22
require_relative "utils/formatter"
3-
require 'byebug'
3+
44
module ImageKitIo
55
class File
66
include Utils::Formatter
@@ -68,8 +68,8 @@ def list(options)
6868
formatted_options = request_formatter(options)
6969
raise KeyError(constants.LIST_FILES_INPUT_MISSING) unless formatted_options.is_a?(Hash)
7070
url = constants.BASE_URL
71-
headers = @req_obj.create_headers.update({params: options})
72-
@req_obj.request("get", url, headers, options)
71+
headers = @req_obj.create_headers.update({params: formatted_options})
72+
@req_obj.request("get", url, headers, formatted_options)
7373
end
7474

7575
def details(file_identifier)

0 commit comments

Comments
 (0)