Skip to content

Commit

Permalink
Change method name
Browse files Browse the repository at this point in the history
  • Loading branch information
igordepolli committed Jul 5, 2024
1 parent b014a66 commit 550d161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vitals_image/analyzer/url_analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def open(file)
def download
uri = URI.parse(source.key)
io = uri.open(ssl_verify_mode: ssl_verify_mode)
uri_path = reduce_uri_path(uri.path)
uri_path = truncate_uri_path(uri.path)
downloaded = Tempfile.new([File.basename(uri_path), File.extname(uri_path)], binmode: true)

if io.is_a?(Tempfile)
Expand All @@ -47,7 +47,7 @@ def download
downloaded
end

def reduce_uri_path(uri_path)
def truncate_uri_path(uri_path)
filename, extension = uri_path.split(".")
filename = filename[0..200]

Expand Down

0 comments on commit 550d161

Please # to comment.