Skip to content

Commit

Permalink
rubocop: apply auto fixes with -A
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Dec 28, 2023
1 parent 9f93a54 commit 274ef4e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/clients/ntp-client_proposal.rb
Expand Up @@ -521,9 +521,10 @@ def ui_handle(input)
end
when :ntp_now
rv = Write("ntpdate_only" => true)
if rv == :invalid_hostname
case rv
when :invalid_hostname
handle_invalid_hostname(UI.QueryWidget(Id(:ntp_address), :Value))
elsif rv == :success
when :success
redraw = true # update time widgets
else
Report.Error(_("Connection to selected NTP server failed."))
Expand Down Expand Up @@ -565,10 +566,11 @@ def ui_try_save
# we get [ "address", :<type> ], we need only address here
server = @sources_table.sources.first[0]
Builtins.y2milestone("ui_try_save argmap %1", argmap)
if rv == :invalid_hostname
case rv
when :invalid_hostname
handle_invalid_hostname(server)
return false # loop on
elsif rv == :ntpdate_failed
when :ntpdate_failed
# Translators: yes-no popup,
# ntpdate is a command, %1 is the server address
if Popup.YesNo(
Expand Down

0 comments on commit 274ef4e

Please sign in to comment.