Skip to content

Commit 3a17a64

Browse files
committed
bump: format comments consistently
1 parent 515b31d commit 3a17a64

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Library/Homebrew/dev-cmd/bump.rb

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,14 +328,16 @@ def retrieve_versions_by_arch(formula_or_cask:, repositories:, name:)
328328
repology_latest = repositories.present? ? Repology.latest_version(repositories) : "not found"
329329
repology_latest_is_a_version = repology_latest.is_a?(Version)
330330

331-
# When blocks are absent, arch is not relevant. For consistency, we simulate the arm architecture.
331+
# When blocks are absent, arch is not relevant. For consistency, we
332+
# simulate the arm architecture.
332333
arch_options = is_cask_with_blocks ? OnSystem::ARCH_OPTIONS : [:arm]
333334

334335
arch_options.each do |arch|
335336
SimulateSystem.with(arch:) do
336337
version_key = is_cask_with_blocks ? arch : :general
337338

338-
# We reload the formula/cask here to ensure we're getting the correct version for the current arch
339+
# We reload the formula/cask here to ensure we're getting the
340+
# correct version for the current arch
339341
if formula_or_cask.is_a?(Formula)
340342
loaded_formula_or_cask = formula_or_cask
341343
current_version_value = T.must(loaded_formula_or_cask.stable).version
@@ -376,8 +378,9 @@ def retrieve_versions_by_arch(formula_or_cask:, repositories:, name:)
376378
end
377379
end
378380

379-
# If arm and intel versions are identical, as it happens with casks where only the checksums differ,
380-
# we consolidate them into a single version.
381+
# If arm and intel versions are identical, as it happens with casks
382+
# where only the checksums differ, we consolidate them into a single
383+
# version.
381384
if old_versions[:arm].present? && old_versions[:arm] == old_versions[:intel]
382385
old_versions = { general: old_versions[:arm] }
383386
end
@@ -400,8 +403,8 @@ def retrieve_versions_by_arch(formula_or_cask:, repositories:, name:)
400403
arm: new_versions[:arm],
401404
intel: new_versions[:intel])
402405
rescue
403-
# When livecheck fails, we fail gracefully. Otherwise VersionParser will
404-
# raise a usage error
406+
# When livecheck fails, we fail gracefully. Otherwise VersionParser
407+
# will raise a usage error
405408
new_version = BumpVersionParser.new(general: "unable to get versions")
406409
end
407410

0 commit comments

Comments
 (0)