From 233140a33318be1f2c1fbfb241ffa36212525f4c Mon Sep 17 00:00:00 2001 From: Alexander Fisher Date: Tue, 12 Dec 2017 21:19:37 +0000 Subject: [PATCH] Rubocop: Fix Lint/UselessAssignment --- lib/puppet/type/posix_acl.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/puppet/type/posix_acl.rb b/lib/puppet/type/posix_acl.rb index 1b42396..7b6d1b0 100644 --- a/lib/puppet/type/posix_acl.rb +++ b/lib/puppet/type/posix_acl.rb @@ -131,11 +131,9 @@ def retrieve provider.permission end + # Remove permission bits from an ACL line, eg: + # 'user:root:rwx' becomes 'user:root:' def strip_perms(pl) - desc = "Remove permission bits from an ACL line, eg: - user:root:rwx - becomes - user:root:" Puppet.debug 'permission.strip_perms' value = [] pl.each do |perm|