diff options
author | Lamont Granquist <454857+lamont-granquist@users.noreply.github.com> | 2022-01-04 12:19:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 12:19:09 -0800 |
commit | d483498ecda24a005c833ae4a87b2ed79072f996 (patch) | |
tree | 07dffda874ea9264792094215dfe0edaf792d238 | |
parent | 1c920d7216ade36dbbd5d6c120db6556bcb14fae (diff) | |
parent | 59a53cad26bbc179455ccef2e1a827986c519f81 (diff) | |
download | chef-d483498ecda24a005c833ae4a87b2ed79072f996.tar.gz |
Merge pull request #12421 from chef/Style_MapToHash
-rwxr-xr-x | tasks/docs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb index 2fd92cc40e..a7743ff219 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -133,7 +133,7 @@ namespace :docs_site do # @return [Hash] # def action_list(actions, default_action) - actions = actions.map { |k, v| [k.to_sym, { "markdown" => k == default_action.first ? "#{v} (default)" : v } ] }.to_h + actions = actions.to_h { |k, v| [k.to_sym, { "markdown" => k == default_action.first ? "#{v} (default)" : v } ] } actions[:nothing] = { "shortcode" => "resources_common_actions_nothing.md" } actions end |