We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf88ac commit 55dc434Copy full SHA for 55dc434
lib/MetaCPAN/Script/Mapping.pm
@@ -243,16 +243,16 @@ sub delete_index {
243
sub delete_all {
244
my $self = $_[0];
245
my $runtime_environment = 'production';
246
- my $is_development = 0;
247
248
$runtime_environment = $ENV{'PLACK_ENV'}
249
if ( defined $ENV{'PLACK_ENV'} );
250
$runtime_environment = $ENV{'MOJO_MODE'}
251
if ( defined $ENV{'MOJO_MODE'} );
252
253
- $is_development = 1
254
- if ( $runtime_environment eq 'development'
255
- || $runtime_environment eq 'testing' );
+ my $is_development
+ = $ENV{HARNESS_ACTIVE}
+ || $runtime_environment eq 'development'
+ || $runtime_environment eq 'testing';
256
257
if ($is_development) {
258
my $name = undef;
0 commit comments