Skip to content

Commit

Permalink
Remove unnecessary elaborateness, jnthn++
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Sep 8, 2014
1 parent 9ea8d83 commit 9fb318b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/stubs.pm
Expand Up @@ -34,10 +34,8 @@ sub DYNAMIC(\name) is rw {
elsif nqp::existskey(PROCESS.WHO, $pkgname) {
$x := nqp::atkey(PROCESS.WHO, $pkgname);
}
elsif try INITIALIZE(name) -> $result {
$x := nqp::ordat(nqp::unbox_s(name),0) == 64
?? @($result)
!! $result;
elsif try INITIALIZE(name) -> \result {
$x := result;
}
else {
fail X::Dynamic::NotFound.new(:name(name));
Expand Down

0 comments on commit 9fb318b

Please sign in to comment.