perlcritic: don't open files as bare words

This commit is contained in:
Graham Christensen
2021-09-06 22:19:00 -04:00
parent efd1d78b97
commit 21e1ff0da1
5 changed files with 17 additions and 17 deletions

View File

@ -63,9 +63,9 @@ sub keepBuild {
# Read the current GC roots.
print STDERR "*** reading current roots...\n";
my $gcRootsDir = getGCRootsDir;
opendir DIR, $gcRootsDir or die;
my @roots = readdir DIR;
closedir DIR;
opendir my $dir, $gcRootsDir or die;
my @roots = readdir $dir;
closedir $dir;
# For scheduled builds, we register the derivation as a GC root.