summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Cox <pcox@fb.com>2015-01-12 14:29:30 -0800
committerPat Cox <pcox@fb.com>2015-01-12 14:29:30 -0800
commit9e974d0b8fc7cea21a15ec4a28de02741ee30449 (patch)
tree387c2cf3c8cf7a6b1f5f05a99608ead1b4f319d3
parentbcba63cca1ebf057fbd97a04ec4b368ebe9028a6 (diff)
downloadchef-9e974d0b8fc7cea21a15ec4a28de02741ee30449.tar.gz
fix small readability issue, as per code review
-rw-r--r--lib/chef/provider/user/dscl.rb4
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