[strip-nondeterminism] 01/03: zip.pm: Use block form of grep over expression form.
Chris Lamb
chris at chris-lamb.co.uk
Sat Sep 3 18:49:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository strip-nondeterminism.
commit d5ba45eafbf209e190dd6986d2cfffcd69435e27
Author: Chris Lamb <lamby at debian.org>
Date: Sat Sep 3 19:08:31 2016 +0100
zip.pm: Use block form of grep over expression form.
---
lib/File/StripNondeterminism/handlers/zip.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/File/StripNondeterminism/handlers/zip.pm b/lib/File/StripNondeterminism/handlers/zip.pm
index 12f8613..88a8391 100644
--- a/lib/File/StripNondeterminism/handlers/zip.pm
+++ b/lib/File/StripNondeterminism/handlers/zip.pm
@@ -133,7 +133,7 @@ sub normalize {
my $zip = Archive::Zip->new();
my @errors;
if (try(sub { $zip->read($zip_filename) }, \@errors) != AZ_OK) {
- if (grep /zip64 not supported/, @errors) {
+ if (grep { /zip64 not supported/ } @errors) {
# Ignore zip64 files, which aren't supported by Archive::Zip.
# Ignoring unsupported files, instead of erroring out, is
# consistent with the rest of strip-nondeterminism's behavior,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/strip-nondeterminism.git
More information about the Reproducible-commits
mailing list