Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unneeded "as Str" specification
  • Loading branch information
lizmat committed Jan 12, 2015
1 parent 6a3fc31 commit 49a0bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/EnumMap.pm
Expand Up @@ -33,10 +33,10 @@ my class EnumMap does Associative { # declared in BOOTSTRAP
&& nqp::existskey($!storage, nqp::unbox_s(key))
)
}
multi method exists_key(EnumMap:D: \key as Str) {
multi method exists_key(EnumMap:D: \key) {
nqp::p6bool(
nqp::defined($!storage)
&& nqp::existskey($!storage, nqp::unbox_s(key))
&& nqp::existskey($!storage, nqp::unbox_s(key.Str))
)
}

Expand Down

0 comments on commit 49a0bf5

Please sign in to comment.