Skip to content

Commit 85b5ab3

Browse files
committed
only call CMR check once
1 parent 9a352b8 commit 85b5ab3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ExtUtils/MakeMaker.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,10 @@ sub new {
446446

447447
# Cleanup all the module requirement bits
448448
my %key2cmr;
449+
my $has_cpan_meta_requirements = _has_cpan_meta_requirements;
449450
for my $key (@PREREQ_KEYS) {
450451
$self->{$key} ||= {};
451-
if (_has_cpan_meta_requirements) {
452+
if ($has_cpan_meta_requirements) {
452453
my $cmr = CPAN::Meta::Requirements->from_string_hash(
453454
$self->{$key},
454455
{

0 commit comments

Comments
 (0)