Skip to content

Commit

Permalink
Use string directly instead of array
Browse files Browse the repository at this point in the history
An improvement from code review.
  • Loading branch information
dgdavid committed Nov 25, 2021
1 parent 33583f0 commit 666ac0d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/include/installation/misc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def confirmInstallation
#
# @return [String]
def confirm_installation_text
result = []
result = ""

result << HTML.Heading(_("Confirm Installation"))
result << _("<p>Information required for the base installation is now complete.</p>")
Expand All @@ -125,15 +125,13 @@ def confirm_installation_text
result << _(
"<p>Go back and check the settings if you are unsure.</p>"
)

result.join
end

# Text for confirmation popup before the update really starts
#
# @return [String]
def confirm_update_text
result = []
result = ""

result << HTML.Heading(_("Confirm Update"))
result << _("<p>Information required to perform an update is now complete.</p>")
Expand All @@ -143,8 +141,6 @@ def confirm_update_text
"according to the settings in the previous dialogs.</p>"
)
result << _("<p>Go back and check the settings if you are unsure.</p>")

result.join
end

# Label for the confirmation button before starting the installation or update process
Expand Down

0 comments on commit 666ac0d

Please sign in to comment.