Skip to content

Commit

Permalink
more consistent formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 27, 2016
1 parent 880f4a6 commit 0928de8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/Server/Daemon.pm
Expand Up @@ -235,9 +235,8 @@ sub _write {

# Finish or continue writing
my $next = $tx->is_finished ? '_finish' : $chunk eq '' ? undef : '_write';
return unless $next;
weaken $self;
$stream->write('' => sub { $self->$next($id) });
$stream->write('' => sub { $self->$next($id) }) if $next;
}

1;
Expand Down

0 comments on commit 0928de8

Please sign in to comment.