Commit 919f68dd authored by Côme Chilliet's avatar Côme Chilliet Committed by Benoit Mortier
Browse files

Use for instead of map to fix sonar warning about modifying $_ in map.

parent aa85649e
......@@ -1597,7 +1597,7 @@ sub migrate_acls {
if ($old_formats) {
@nacls = sort @nacls;
my $i = 0;
map { s/^[0-9]*:/$i:/; $i++ } @nacls; # Re-index acls
for (@nacls) { s/^[0-9]*:/$i:/; $i++ }; # Re-index acls
my $result = $ldap->modify (
$entry->dn,
replace => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment