Skip to content

Commit

Permalink
Fixed rubocop complaints (that I didn't introduce)
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Mar 24, 2022
1 parent 5d454fb commit 0493606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/PackageSlideShow.rb
Expand Up @@ -257,7 +257,7 @@ def DownloadError(error, reason, pkg_name)
end

# Finalize the sums for the current download
def CurrentDownloadFinished()
def CurrentDownloadFinished
@finished_total_download_size += @current_pkg_download_size
@current_pkg_download_size = 0
@current_pkg_download_percent = 0
Expand Down
6 changes: 3 additions & 3 deletions src/modules/SlideShowCallbacks.rb
Expand Up @@ -94,7 +94,7 @@ def ProgressDownload(percent, _bps_avg, _bps_current)
# during file providal
def DoneProvide(error, reason, name)
if @_remote_provide
if (error)
if error
PackageSlideShow.DownloadError(error, reason, name)
else
PackageSlideShow.DownloadEnd
Expand Down Expand Up @@ -428,12 +428,12 @@ def DonePackage(error, reason)
end

# at start of file providal
def StartDeltaProvide(name, archivesize)
def StartDeltaProvide(_name, _archivesize)
nil
end

# at start of file providal
def StartDeltaApply(name)
def StartDeltaApply(_name)
nil
end

Expand Down

0 comments on commit 0493606

Please sign in to comment.