From ff12218d0274a78caf668186b8d3ecf6a84eb93d Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 10 Jan 2022 10:35:39 -0800 Subject: [PATCH] BuildDiff: cleanup imports and make slightly more readable --- src/lib/Hydra/Helper/BuildDiff.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/Hydra/Helper/BuildDiff.pm b/src/lib/Hydra/Helper/BuildDiff.pm index 08308a6d..6dc534df 100644 --- a/src/lib/Hydra/Helper/BuildDiff.pm +++ b/src/lib/Hydra/Helper/BuildDiff.pm @@ -3,10 +3,6 @@ package Hydra::Helper::BuildDiff; use utf8; use strict; use warnings; -use base 'Hydra::Base::Controller::NixChannel'; -use Hydra::Helper::Nix; -use Hydra::Helper::CatalystUtils; -use List::SomeUtils qw(uniq); our @ISA = qw(Exporter); our @EXPORT = qw( @@ -66,7 +62,8 @@ sub buildDiff { } else { die; } last; } - push @{$ret->{removed}}, { job => $build2->get_column('job'), system => $build2->get_column('system') }; + my $job_system = { job => $build2->get_column('job'), system => $build2->get_column('system') }; + push @{$ret->{removed}}, $job_system; $n++; } if ($aborted) {