From 33346aad721728185a0989d1eb2832d9672ed155 Mon Sep 17 00:00:00 2001 From: Moritz Lenz Date: Tue, 3 Feb 2015 15:49:10 +0100 Subject: Avoid warning in tools/build/panda-state.p6 --- tools/build/panda-state.p6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/panda-state.p6 b/tools/build/panda-state.p6 index 96716f9..9b986d9 100644 --- a/tools/build/panda-state.p6 +++ b/tools/build/panda-state.p6 @@ -21,7 +21,7 @@ Nil; # Walk the submodules and put its project information in panda's state file. my $fh = $state-file.IO.open(:w); for '.gitmodules'.IO.lines.grep(/^\turl/).map({ /$=[\S+]$/; ~$ }) -> $url { - my $p = $projects.first({$_. ~~ /^ "{%ex{$url} // $url}" '.git'? $/}); + my $p = $projects.first({defined . && $_. ~~ /^ "{%ex{$url} // $url}" '.git'? $/}); $p = 'git'; $p = $url; $fh.say: $p ~ ' installed ' ~ to-json($p).subst(/\n+/, '', :g); -- cgit v1.1