From 07e636a9da28e382fa9382b444c182c55301818f Mon Sep 17 00:00:00 2001 From: Chase Whitener Date: Tue, 2 May 2023 21:08:45 -0400 Subject: Fix the defined check to use parens --- t/query.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/query.t b/t/query.t index e855153..403975f 100644 --- a/t/query.t +++ b/t/query.t @@ -82,7 +82,7 @@ is $u, "?a=1;b=2"; $u->query('a&b=2'); @q = $u->query_form; -is join(":", map { defined ? $_ : '' } @q), "a::b:2"; +is join(":", map { defined($_) ? $_ : '' } @q), "a::b:2"; ok !defined($q[1]); $u->query_form(@q); -- cgit v1.2.1