Skip to content

Commit d41d151

Browse files
committed
Since we don't care about its return value, don't use .map. We do have a
nice idiom for calling method like subs, so use that instead.
1 parent a768510 commit d41d151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Type/IO/Path.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ contents you will have to do something more complex.
299299
300300
# When we have a directory first recurse, then remove it
301301
multi sub rm-all(IO::Path $path where :d) {
302-
$path.dir.map({ rm-all($^p) });
302+
.&rm-all for $path.dir;
303303
rmdir($path)
304304
}
305305

0 commit comments

Comments
 (0)