Skip to content

Commit

Permalink
Fixed Style/NestedModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jun 9, 2016
1 parent 397ae63 commit a56564a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/cwm/src/modules/CWM.rb
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def Run(widgets, functions, skip_store_for: [])

next if ret.nil?

ret = nil if !validateWidgets(widgets, event_descr) if save
ret = nil if save && (!validateWidgets(widgets, event_descr))

if ret.nil?
save = false
Expand Down
2 changes: 1 addition & 1 deletion library/system/src/modules/ModulesConf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def Save(force)

SCR.Write(path(".modules"), nil) if modules_conf_changed

RunDepmod(true) if !Mode.test if modules_conf_changed || force
RunDepmod(true) if (modules_conf_changed || force) && (!Mode.test)

nil
end
Expand Down
2 changes: 1 addition & 1 deletion library/wizard/src/modules/Wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ def SetContentsFocus(title, contents, help_text, has_back, has_next, set_focus)
UI.ChangeWidget(Id(:title), :Value, title)
end

UI.SetFocus(Id(:accept)) if UI.WidgetExists(Id(:accept)) if set_focus
UI.SetFocus(Id(:accept)) if set_focus && UI.WidgetExists(Id(:accept))
end

SetHelpText(help_text)
Expand Down

0 comments on commit a56564a

Please sign in to comment.