Skip to content

Commit

Permalink
rubocop: fixed "Use the new lambda syntax"
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Nov 26, 2014
1 parent d54a4bc commit c28dd0e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
4 changes: 0 additions & 4 deletions .rubocop.yml
Expand Up @@ -73,10 +73,6 @@ Style/Documentation:
Style/IfUnlessModifier:
Enabled: false

# Offense count: 13
Style/Lambda:
Enabled: false

# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Expand Down
16 changes: 8 additions & 8 deletions src/clients/inst_scc.rb
Expand Up @@ -562,14 +562,14 @@ def registration_ui
def start_workflow
aliases = {
# skip this when going back
"check" => [ lambda { registration_check }, true ],
"register" => lambda { register_base_system },
"select_addons" => lambda { select_addons },
"update" => [ lambda { update_registration }, true ],
"addon_eula" => lambda { addon_eula },
"register_addons" => lambda { register_addons },
"update_autoyast_config" => lambda { update_autoyast_config },
"pkg_manager" => lambda { pkg_manager }
"check" => [ ->() { registration_check }, true ],
"register" => ->() { register_base_system },
"select_addons" => ->() { select_addons },
"update" => [ ->() { update_registration }, true ],
"addon_eula" => ->() { addon_eula },
"register_addons" => ->() { register_addons },
"update_autoyast_config" => ->() { update_autoyast_config },
"pkg_manager" => ->() { pkg_manager }
}

sequence = {
Expand Down
10 changes: 5 additions & 5 deletions src/lib/registration/ui/autoyast_config_workflow.rb
Expand Up @@ -36,11 +36,11 @@ def initialize(config)

def run
aliases = {
"general" => lambda { configure_registration },
"addons" => [ lambda { select_addons }, true ],
"remote_addons" => [ lambda { select_remote_addons }, true ],
"addons_eula" => [ lambda { addons_eula }, true ],
"addons_regcodes" => [ lambda { addons_reg_codes }, true ]
"general" => ->() { configure_registration },
"addons" => [ ->() { select_addons }, true ],
"remote_addons" => [ ->() { select_remote_addons }, true ],
"addons_eula" => [ ->() { addons_eula }, true ],
"addons_regcodes" => [ ->() { addons_reg_codes }, true ]
}

sequence = {
Expand Down

0 comments on commit c28dd0e

Please sign in to comment.