Skip to content

Commit

Permalink
Make RuboCop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Feb 24, 2021
1 parent 5714bba commit e210f23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/y2network/wireless_scanner.rb
Expand Up @@ -225,10 +225,8 @@ def fetch_auth_mode(fields)
wpa_modes = auth_modes.select { |a| a.name.include?("WPA") }

if !wpa_modes.empty?
auth_suites = wpa_modes.map(&:auth_suite).flatten
return auth_suites.include?("802.1x") ?
WirelessAuthMode::WPA_EAP :
WirelessAuthMode::WPA_PSK
suites = wpa_modes.map(&:auth_suite).flatten
return suites.include?("802.1x") ? WirelessAuthMode::WPA_EAP : WirelessAuthMode::WPA_PSK
end

return WirelessAuthMode::WEP_OPEN if field_single_value("Encryption key", fields) == "on"
Expand Down

0 comments on commit e210f23

Please sign in to comment.