Skip to content

Commit b0c06de

Browse files
committed
simplify URI::Escape requirement in pod-htmlify.t
1 parent ab78bc1 commit b0c06de

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

t/pod-htmlify.t

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@ use v6;
22
use Test;
33
use lib 'lib';
44

5-
BEGIN {
6-
try {
7-
EVAL "use URI::Escape";
8-
CATCH {
9-
default {
10-
warn "URI::Escape required to run these tests";
11-
plan 0;
12-
exit;
13-
}
14-
}
15-
}
5+
unless (try require URI::Escape) {
6+
warn "URI::Escape required to run these tests";
7+
plan 0;
8+
exit;
169
}
1710

1811
plan 3;

0 commit comments

Comments
 (0)