Skip to content

Commit c007f0a

Browse files
committed
Don't use variable before declaration
1 parent 703d943 commit c007f0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • bindings/ruby/lib/whisper/model

bindings/ruby/lib/whisper/model/uri.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def download(response)
9494
end
9595

9696
def show_progress(current, size)
97-
progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line.size
97+
line_size = 47
98+
progress_rate_available = size && $stderr.tty? && $stderr.winsize[1] >= line_size
9899

99100
unless @prev
100101
@prev = Time.now

0 commit comments

Comments
 (0)