aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-09-26 19:22:34 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-09-26 19:22:34 +1300
commitd4c095ef249f457f16e6bd18dfa47338ca2830c2 (patch)
tree5a85701b2af38c3328678e62c09fb8511237ab5e
parentHandle and print file errors properly (diff)
downloadcheckem-d4c095ef249f457f16e6bd18dfa47338ca2830c2.tar.gz
checkem-d4c095ef249f457f16e6bd18dfa47338ca2830c2.zip
Use 'and' rather than '&&' for readability
-rwxr-xr-xcheckem2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkem b/checkem
index 830e75a..85c5364 100755
--- a/checkem
+++ b/checkem
@@ -108,7 +108,7 @@ SIZE: for my $fs ( grep { @{$_} > 1 } values %sizes ) {
# Catch hard links on compliant systems by keeping a dev/inode hash
my ( $dev, $ino ) = @{$f}{qw(dev ino)};
- if ( $dev && $ino ) {
+ if ( $dev and $ino ) {
next if exists $inos{$dev}{$ino};
$inos{$dev}{$ino} = $f;
}