Skip to content

Commit

Permalink
clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ClayBirkett committed Feb 26, 2025
1 parent 7a2d315 commit 3ba25b0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/solGS/JobSubmission.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,16 @@ sub run_prerequisite_jobs {
$remaining_jobs = $self->wait_till_jobs_end($submitted_priority_jobs);
}
else {
if ( reftype $pre_jobs eq 'SCALAR' ) {
if ( reftype($pre_jobs) eq 'SCALAR' ) {
$pre_jobs = [$pre_jobs];
}

my $submitted_jobs = $self->submit_jobs($pre_jobs);

$remaining_jobs = $self->wait_till_jobs_end($submitted_jobs);
print STDERR "\nremaining jobs: $remaining_jobs\n";

if (defined $remaining_jobs) {
print STDERR "\nremaining jobs: $remaining_jobs\n";
}
}
}

Expand Down Expand Up @@ -126,14 +127,16 @@ sub run_dependent_jobs {
my $jobs_file = $self->dependent_jobs;
my $dep_jobs = retrieve($jobs_file);

if ( reftype $dep_jobs ne 'ARRAY' ) {
if ( reftype($dep_jobs) ne 'ARRAY' ) {
$dep_jobs = [$dep_jobs];
}

my $submitted_jobs = $self->submit_jobs($dep_jobs);

my $remaining_jobs = $self->wait_till_jobs_end($submitted_jobs);
print STDERR "\nremaining jobs: $remaining_jobs\n";
if (defined $remaining_jobs) {
print STDERR "\nremaining jobs: $remaining_jobs\n";
}
return $remaining_jobs;

}
Expand Down

0 comments on commit 3ba25b0

Please sign in to comment.