Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Dec 12, 2016
1 parent 695343c commit a0bf428
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions keyboard/src/lib/y2country/widgets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ def store

def items
# a bit tricky as method return incompatible data
res = Yast::Keyboard.GetKeyboardItems
res.map! do |item|
values = item.params
id, name, *_ = values
Yast::Keyboard.GetKeyboardItems.map do |item|
id, name, _enabled = item.params
id = id.params.first
[id, name]
end
Expand Down

0 comments on commit a0bf428

Please sign in to comment.