Commit 942f9a29 authored by Leo Gordon's avatar Leo Gordon
Browse files

formatting and cleanup

parent 41953ab2
......@@ -51,9 +51,9 @@ sub adaptor {
}
sub refresh {
my $self = shift;
return unless($self->adaptor);
$self->adaptor->refresh($self);
my $self = shift;
return $self->adaptor && $self->adaptor->refresh($self);
}
sub update {
......
......@@ -516,8 +516,6 @@ sub synchronize_AnalysisStats {
return $analysisStats unless($analysisStats);
return $analysisStats unless($analysisStats->analysis_id);
my $analysis_stats_adaptor = $self->db->get_AnalysisStatsAdaptor or return undef;
$analysisStats->refresh(); ## Need to get the new hive_capacity for dynamic analyses
my $hive_capacity = $analysisStats->hive_capacity;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment