aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheckem2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkem b/checkem
index 38cf1e6..84b356b 100755
--- a/checkem
+++ b/checkem
@@ -53,7 +53,7 @@ if ( exists $ENV{CHECKEM_ALG} ) {
# Try worse and worse algorithms until we get a digest object
else {
ALG: for my $alg (qw(SHA-256 SHA-1 MD5)) {
- next ALG if not eval { $dig = Digest->new($alg); };
+ last ALG if eval { $dig = Digest->new($alg); };
}
}