Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove superfluous named parameter
  • Loading branch information
lizmat committed Jun 23, 2013
1 parent 38173e7 commit 39d29d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/Any.pm
Expand Up @@ -475,13 +475,12 @@ my class Any {
:$exists!,
:$kv = $default,
:$p = $default,
:$k = $default
) is rw {

if nqp::iscont(key) { # handle single key immediately
SELF{key}:$exists:$kv:$p:$k;
SELF{key}:$exists:$kv:$p;
}
if $kv & $p & $k === $default { # :exists?
if $kv & $p === $default { # :exists?
key.map({ !( SELF.exists($_) ?^ $exists ) }).eager.Parcel;
}
elsif $kv !=== $default { # :exists?:kv?
Expand Down

0 comments on commit 39d29d8

Please sign in to comment.