Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
a chunk is required
  • Loading branch information
kraih committed Aug 21, 2015
1 parent 8cd6fa7 commit b53ee1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/Asset/File.pm
Expand Up @@ -46,8 +46,7 @@ sub DESTROY {

sub add_chunk {
my ($self, $chunk) = @_;
defined $self->handle->syswrite($chunk // '')
or croak "Can't write to asset: $!";
defined $self->handle->syswrite($chunk) or croak "Can't write to asset: $!";
return $self;
}

Expand Down

0 comments on commit b53ee1f

Please sign in to comment.