Skip to content

Commit

Permalink
Avoid unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5tract committed Feb 12, 2023
1 parent 93caca5 commit 7b4e982
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Raku/ast/signature.rakumod
Expand Up @@ -1087,8 +1087,7 @@ class RakuAST::ParameterTarget::Var
}

method IMPL-LOOKUP-QAST(RakuAST::IMPL::QASTContext $context) {
my str $scope := 'lexical';
QAST::Var.new( :name($!name), :$scope )
QAST::Var.new( :name($!name), :scope('lexical') )
}

method default-scope() { 'my' }
Expand Down

0 comments on commit 7b4e982

Please sign in to comment.