Skip to content

Commit

Permalink
make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 26, 2017
1 parent 412fc8a commit 4d71ab5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/installation/clients/inst_casp_overview.rb
Expand Up @@ -79,7 +79,7 @@ def run
# %s is a heading of a problematic section, like "Partitioning" or "Network"
Yast::Popup.Error(
_("%s blocks the installation. Please solve the problem there before proceeding.") %
blocker.label.gsub(/&/, "")
blocker.label.delete("&")
)
next
end
Expand Down
14 changes: 7 additions & 7 deletions src/lib/installation/widgets/overview.rb
Expand Up @@ -64,14 +64,14 @@ def items
])
if d["warning"] && !d["warning"].empty? && d["warning_level"] != :notice
Yast::Popup.LongError(
"Problem found when proposing %{client}:<br>" \
"Severity: %{severity}<br>" \
"Message: %{message}" %
({
client: label,
format(
"Problem found when proposing %{client}:<br>" \
"Severity: %{severity}<br>" \
"Message: %{message}",
client: label.delete("&"),
severity: (d["warning_level"] || :warning).to_s,
message: d["warning"]
})
message: d["warning"]
)
)
@blocking = [:blocker, :fatal].include?(d["warning_level"])
end
Expand Down

0 comments on commit 4d71ab5

Please sign in to comment.