Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit ce655a6

Browse files
committed
Porting/cmpVERSION.pl: no eval
MM->parse_version is now stable with the existing file
1 parent 241fd94 commit ce655a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Porting/cmpVERSION.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ sub pm_file_from_xs {
202202
foreach my $pm_file (sort keys %module_diffs) {
203203
# git has already told us that the files differ, so no need to grab each as
204204
# a blob from git, and do the comparison ourselves.
205-
my $pm_version = eval { MM->parse_version($pm_file) };
205+
my $pm_version = MM->parse_version($pm_file);
206206
my $orig_pm_content = get_file_from_git($pm_file, $tag_to_compare);
207207
my $pm_handle = new Test::Builder::IO::Scalar \$orig_pm_content;
208-
my $orig_pm_version = eval { MM->parse_version($pm_handle) };
208+
my $orig_pm_version = MM->parse_version($pm_handle);
209209
++$count;
210210

211211
if (!defined $orig_pm_version || $orig_pm_version eq 'undef') { # sigh

0 commit comments

Comments
 (0)