Skip to content

Commit

Permalink
Rubocop manual fix: Lint/UselessAssignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 21, 2017
1 parent de6c48d commit c5e7061
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion src/clients/xpram.rb
Expand Up @@ -145,7 +145,6 @@ def XpramEnableHandler(options)
# @param [Hash] options a list of parameters passed as args
# @return [Boolean] true on success
def XpramDisableHandler(options)
options = deep_copy(options)
if Xpram.start
Xpram.start = false
Xpram.modified = true
Expand Down
2 changes: 0 additions & 2 deletions src/include/s390/dump/ui.rb
Expand Up @@ -185,8 +185,6 @@ def DumpDialog
if Builtins.size(device) == 0
Popup.Notify(_("You haven't selected any device."))
else
# count devices for proper grammatical number output
num_devices = Builtins.size(Builtins.splitstring(device, " "))
# warn only in case of force
if !force ||
Popup.YesNo(
Expand Down
8 changes: 0 additions & 8 deletions src/include/s390/iucvterminal-server/ui.rb
Expand Up @@ -579,7 +579,6 @@ def TsGroupDialogContent

def MainDialogContent
# draw active tab
widgets = nil
widgets = if @current_main_tab == :t_zvmids
ZvmIdsDialogContent()
elsif @current_main_tab == :t_tsshell
Expand Down Expand Up @@ -726,7 +725,6 @@ def CommitTsUserDialogSettings
from: "any",
to: "list <string>"
)
groups = Builtins.mergestring(grouplist, ",")
groupmap = Builtins.listmap(grouplist) { |g| { g => "1" } }

force_pw_change = Convert.to_boolean(
Expand Down Expand Up @@ -823,10 +821,6 @@ def CommitTsGroupDialogSettings
# check if the group should be added and was not already used for TS auth
if !Builtins.haskey(@ts_member_conf, identification)
if is_ts_auth_group
group_members = Builtins.mergestring(userlist, ",")
group = Users.GetGroupByName(groupname, "")
gid = Ops.get_string(group, "gidNumber", "")

# add ts_member_conf
@ts_member_conf = Builtins.add(
@ts_member_conf,
Expand All @@ -840,7 +834,6 @@ def CommitTsGroupDialogSettings
else
# delete group entry if disabled
if !is_ts_auth_group
i = 0
@ts_member_conf = Builtins.remove(@ts_member_conf, identification)
end
end
Expand Down Expand Up @@ -1626,7 +1619,6 @@ def IUCVTerminalServerDialog
# The whole sequence
# @return sequence result
def IUCVTerminalServerSequence
ret = nil
Wizard.CreateDialog
Wizard.SetDesktopIcon("iucvterminal-server")
IUCVTerminalServer.Read
Expand Down
1 change: 0 additions & 1 deletion src/modules/DASDController.rb
Expand Up @@ -711,7 +711,6 @@ def FormatDisks(disks_list, par)
end
end
index = 0
siz = Builtins.size(this_step)
Builtins.foreach(this_step) do |k, _v|
UI.ChangeWidget(
Id(index),
Expand Down
1 change: 0 additions & 1 deletion src/modules/Dump.rb
Expand Up @@ -142,7 +142,6 @@ def FormatDisk(dev, force)
Progress.NextStage

if ret != 0
err = ""
err = if ret == 11
# error description
_("Invalid or unusable disk (fatal).")
Expand Down
2 changes: 1 addition & 1 deletion src/modules/IUCVTerminal.rb
Expand Up @@ -97,7 +97,7 @@ def get_iucv_name
match = entry.scan(/^#{@IUCV_PREFIX}@(.+)0\.service$/).first
name = match.first if match
end
name ||= @iucv_name
name || @iucv_name
end

def setup_iucv(target_num)
Expand Down
1 change: 0 additions & 1 deletion src/modules/IUCVTerminalServer.rb
Expand Up @@ -445,7 +445,6 @@ def Read
end
end
end
test = []

Progress.NextStage
true
Expand Down
1 change: 0 additions & 1 deletion src/modules/Xpram.rb
Expand Up @@ -98,7 +98,6 @@ def Write
# Xpram read dialog caption
caption = _("Saving XPRAM Configuration")
steps = 2
bret = true

Progress.New(
caption,
Expand Down

0 comments on commit c5e7061

Please sign in to comment.