Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplify object construction a bit

  • Loading branch information...
commit b1ba03bbb3a0f8dde834704a822da46c703434c5 1 parent 86764bc
@moritz moritz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/URI.pm
View
2  lib/URI.pm
@@ -128,7 +128,7 @@ method new(Str $uri_pos1?, Str :$uri, :$is_validating) {
die "Please specify the uri by name or position but not both.";
}
elsif $uri.defined or $uri_pos1.defined {
- $obj.parse($uri.defined ?? $uri !! $uri_pos1);
+ $obj.parse($uri // $uri_pos1);
}
return $obj;
Please sign in to comment.
Something went wrong with that request. Please try again.