From 086485bb431ccc37f007eea0a0dcc3f15a719cb1 Mon Sep 17 00:00:00 2001 From: Michal Filka Date: Wed, 3 Aug 2016 18:24:37 +0200 Subject: [PATCH] Happy rubocop --- src/include/network/lan/hardware.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/network/lan/hardware.rb b/src/include/network/lan/hardware.rb index 606e20173..4fd30a031 100644 --- a/src/include/network/lan/hardware.rb +++ b/src/include/network/lan/hardware.rb @@ -792,13 +792,13 @@ def validate_hw(_key, _event) ret = if UsedNicName(nm) Popup.Error( - _("Configuration name %s already exists.\nChoose a different one." % nm) + format(_("Configuration name %s already exists.\nChoose a different one.", nm)) ) false elsif !ValidNicName(nm) Popup.Error( - _("Configuration name %s is invalid.\nChoose a different one." % nm) + format(_("Configuration name %s is invalid.\nChoose a different one.", nm)) ) false @@ -808,7 +808,7 @@ def validate_hw(_key, _event) UI.SetFocus(Id(:ifcfg_name)) if !ret - return ret + ret end VLAN_SIZE = 4 # size of vlanN prefix without number