Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nics committed Dec 4, 2017
1 parent feee60e commit 94d47b5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/Catmandu/Exporter/TSV.pm
Expand Up @@ -8,6 +8,8 @@ use Catmandu::Exporter::CSV;
use Moo;
use namespace::clean;

has csv => (is => 'lazy', handles => [qw(add)]);

with 'Catmandu::TabularExporter';

has sep_char => (
Expand All @@ -19,7 +21,6 @@ has sep_char => (
return $sep_char;
}
);
has csv => (is => 'lazy');

sub _build_csv {
my ($self) = @_;
Expand All @@ -36,11 +37,6 @@ sub _build_csv {
$csv;
}

sub add {
my ($self, $data) = @_;
$self->csv->add($data);
}

1;

__END__
Expand Down

0 comments on commit 94d47b5

Please sign in to comment.