Skip to content

Commit

Permalink
Use simpler perl syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 11, 2018
1 parent cd82898 commit ed18c45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/perl5/Bio/JBrowse/Cmd/IndexNames.pm
Expand Up @@ -438,9 +438,9 @@ sub make_operation_stream {
}

return sub {
if(scalar @operation_buffer == 0) {
while((my $n = $record_stream->()) && scalar @operation_buffer < 5000) {
push @operation_buffer, $self->make_operations($n);
unless( @operation_buffer ) {
while( (my $name_record = $record_stream->()) && @operation_buffer < 5000) {
push @operation_buffer, $self->make_operations($name_record);
}
}
return shift @operation_buffer;
Expand Down

0 comments on commit ed18c45

Please sign in to comment.