Skip to content

Commit

Permalink
Prevent warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Oct 24, 2015
1 parent 6b8da28 commit 77eb4c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/IO/Handle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ my class IO::Handle does IO {
$c;
}

multi method split(IO::Handle:D: :$close, :$COMB) {
multi method split(IO::Handle:D: :$close = False, :$COMB) {
Seq.new(class :: does Iterator {
has Mu $!handle;
has int $!close;
Expand Down Expand Up @@ -217,7 +217,7 @@ my class IO::Handle does IO {
}
}.new(self, +$close, $COMB));
}
multi method split(IO::Handle:D: $splitter, :$close, :$COMB) {
multi method split(IO::Handle:D: $splitter, :$close = False, :$COMB) {
return self.split(:$close,:$COMB)
if nqp::istype($splitter,Cool) && $splitter.Str.chars == 0;

Expand Down

0 comments on commit 77eb4c2

Please sign in to comment.