Skip to content

Commit

Permalink
Minimally invasive streamline Proc::Async.new
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 27, 2017
1 parent 9837687 commit bb0ebab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/Proc/Async.pm
Expand Up @@ -118,11 +118,7 @@ my class Proc::Async {
has $!encoder;
has @!close-after-exit;

proto method new(|) { * }
multi method new(*@args where .so) {
my $path = @args.shift;
self.bless(:$path, :@args, |%_)
}
method new($path, *@args) { self.bless(:$path, :@args, |%_) }

submethod TWEAK(--> Nil) {
$!encoder := Encoding::Registry.find($!enc).encoder(:$!translate-nl);
Expand Down

0 comments on commit bb0ebab

Please sign in to comment.