From d98d74fa4f667a41456d691fdc8ed46512128a84 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 20 Oct 2021 11:33:50 -0400 Subject: [PATCH] perlcritic: doesn't like prototypes --- src/lib/Hydra/Helper/Nix.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index 00c1c6a7..3881acbc 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -488,7 +488,7 @@ sub getTotalShares { } -sub cancelBuilds($$) { +sub cancelBuilds { my ($db, $builds) = @_; return $db->txn_do(sub { $builds = $builds->search({ finished => 0 }); @@ -505,7 +505,7 @@ sub cancelBuilds($$) { } -sub restartBuilds($$) { +sub restartBuilds { my ($db, $builds) = @_; $builds = $builds->search({ finished => 1 });