diff options
author | Pat Cox <pcox@fb.com> | 2015-01-12 14:29:30 -0800 |
---|---|---|
committer | Pat Cox <pcox@fb.com> | 2015-01-12 14:29:30 -0800 |
commit | 9e974d0b8fc7cea21a15ec4a28de02741ee30449 (patch) | |
tree | 387c2cf3c8cf7a6b1f5f05a99608ead1b4f319d3 | |
parent | bcba63cca1ebf057fbd97a04ec4b368ebe9028a6 (diff) | |
download | chef-9e974d0b8fc7cea21a15ec4a28de02741ee30449.tar.gz |
fix small readability issue, as per code review
-rw-r--r-- | lib/chef/provider/user/dscl.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/provider/user/dscl.rb b/lib/chef/provider/user/dscl.rb index f8c0f6cb01..0fc431b0b0 100644 --- a/lib/chef/provider/user/dscl.rb +++ b/lib/chef/provider/user/dscl.rb @@ -246,7 +246,9 @@ user password using shadow hash.") tmap end if uid_map[uid.to_s] - return true unless uid_map[uid.to_s] == @new_resource.username.to_s + unless uid_map[uid.to_s] == @new_resource.username.to_s + return true + end end return false end |