Skip to content
Permalink
Browse files

Happy rubocop

  • Loading branch information...
mchf committed Apr 18, 2018
1 parent 1bd1bcd commit c56c28c679cf4385a9ae062b075539aaf02efd45
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/modules/Lan.rb
@@ -377,9 +377,9 @@ def Read(cache)

return false if Abort()
rescue IOError, SystemCallError, RuntimeError => error
msg = _("Network configuration is corrupted.\n"\
msg = format(_("Network configuration is corrupted.\n"\
"If you continue resulting configuration can be malformed."\
"\n\n%s" % wrap_string(error.message))
"\n\n%s"), wrap_text(error.message))
ret = @gui && Popup.ContinueCancel(msg)
return false if !ret
end
@@ -1044,7 +1044,7 @@ def HaveXenBridge
# @param [Integer] width of resulting string
#
# @return [String] wrapped string
def wrap_string(s, width=50)
def wrap_string(s, width = 50)
s.gsub(/\s+/, " ").gsub(/(.{1,#{width}})( |\Z)/, "\\1\n")
end

0 comments on commit c56c28c

Please sign in to comment.
You can’t perform that action at this time.