Change "if not" into "unless", more perl-like
This commit is contained in:
1 parent
1d8ac31e2f
commit
82a391b40c
1 file changed
+1
-1
@@ -6,7 +6,7 @@ my @lines = `curl "https://gitlab.com/gitlab-org/gitlab-foss/-/raw/master/CHANGE
|
|||||||
foreach (@lines) {
|
foreach (@lines) {
|
||||||
if (/^##\s+(\d+\.\d+\.\d+)\s+\((\d+-\d+-\d+)/) {
|
if (/^##\s+(\d+\.\d+\.\d+)\s+\((\d+-\d+-\d+)/) {
|
||||||
print "$1 [$2]\n";
|
print "$1 [$2]\n";
|
||||||
if (!$all) {
|
unless ($all) {
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user