Skip to content

Commit

Permalink
Remediate FC023: Prefer conditional attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnichol committed Feb 24, 2012
1 parent f924222 commit a3d1de5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recipes/user.rb
Expand Up @@ -30,11 +30,11 @@
end
end

if rbenv_user['global']
rbenv_global rbenv_user['global'] do
user rbenv_user['user']
root_path rbenv_user['root_path'] if rbenv_user['root_path']
end
rbenv_global rbenv_user['global'] do
user rbenv_user['user']
root_path rbenv_user['root_path'] if rbenv_user['root_path']

only_if { rbenv_user['global'] }
end

gem_hash.each_pair do |rubie, gems|
Expand Down

0 comments on commit a3d1de5

Please sign in to comment.