Skip to content

Commit

Permalink
Fixed rubocop complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Mar 29, 2022
1 parent daf8937 commit b214327
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/modules/PackageSlideShow.rb
Expand Up @@ -241,7 +241,7 @@ def UpdateDownloadProgressText
# TRANSLATORS: This is about a remaining download size.
# %1 is the remaining size with a unit (kiB, MiB, GiB etc.),
# %2 the total download size, also with a unit.
_(" (Remaining: %1 of %2)" ),
_(" (Remaining: %1 of %2)"),
String.FormatSize(@expected_total_download_size - CurrentDownloadSize()),
String.FormatSize(@expected_total_download_size)
)
Expand Down Expand Up @@ -394,7 +394,9 @@ def PkgInstallDone(pkg_name, pkg_size, deleting)
nil
end

publish variable: :total_size_to_install, type: "integer" # Deprecated; used in one click installer client
# rubocop:disable Layout/LineLength
#
publish variable: :total_size_to_install, type: "integer" # Deprecated; used in one click installer
publish function: :TotalSizeToInstall, type: "integer ()" # Better substitute for the above
publish function: :GetPackageSummary, type: "map <string, any> ()"
publish function: :InitPkgData, type: "void (boolean)"
Expand All @@ -407,6 +409,8 @@ def PkgInstallDone(pkg_name, pkg_size, deleting)
publish function: :PkgInstallStart, type: "void (string, integer, string, boolean)"
publish function: :PkgInstallProgress, type: "void (integer)"
publish function: :PkgInstallDone, type: "void (string, integer, boolean)"
#
# rubocop:enable Layout/LineLength
end

PackageSlideShow = PackageSlideShowClass.new
Expand Down

0 comments on commit b214327

Please sign in to comment.