aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-08-21 16:32:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-08-21 16:33:19 +1200
commit35bc8ca465bb2b4c2e2c31f7bd76d5bf8e7e1841 (patch)
tree94583e63d693001a056fc0fc85410f2ece3a4a4f
parentBump version number (diff)
downloadcheckem-2.14.tar.gz (sig)
checkem-2.14.zip
Move assignment inlinev2.14
-rwxr-xr-xcheckem5
1 files changed, 2 insertions, 3 deletions
diff --git a/checkem b/checkem
index fbc383f..cd3d0d6 100755
--- a/checkem
+++ b/checkem
@@ -25,7 +25,7 @@ use File::Find;
use Digest;
# Version number to make Perl::Critic happy
-our $VERSION = 2.13;
+our $VERSION = 2.14;
# Complain if there are no arguments
if ( !@ARGV ) {
@@ -110,8 +110,7 @@ SIZE: for my $fs ( grep { @{$_} > 1 } values %sizes ) {
if ( open my $fh, '<', $f->{name} ) {
binmode $fh;
$dig->addfile($fh);
- $f->{hexdigest} = $dig->hexdigest();
- push @{ $sums{ $f->{hexdigest} } }, $f;
+ push @{ $sums{ $f->{hexdigest} = $dig->hexdigest() } }, $f;
close $fh
or carp 'Failed to close file';
}