Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kaimi-io/yandex-music-download.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKaimi <kaimi-@users.noreply.github.com>2017-05-15 21:09:52 +0300
committerGitHub <noreply@github.com>2017-05-15 21:09:52 +0300
commit7a1f60f8b5f96ba15afddabb311d4e94057ed5da (patch)
tree450b13125a0c4b025d8b04c95fbc3e0fc6102220 /src
parent0517749e5475c842077f93b513177e645b6602d0 (diff)
Excessive code removed
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ya.pl8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ya.pl b/src/ya.pl
index 2f81e5e..f086e0f 100755
--- a/src/ya.pl
+++ b/src/ya.pl
@@ -92,15 +92,13 @@ my %req_modules =
$\ = NL;
my @missing_modules;
-for(@{$req_modules{ALL}}, IS_WIN ? @{$req_modules{WIN}} : @{$req_modules{NIX}})
+for my $module(@{$req_modules{ALL}}, IS_WIN ? @{$req_modules{WIN}} : @{$req_modules{NIX}})
{
# Suppress MP3::Tag deprecated regex and other warnings
- eval "local \$SIG{'__WARN__'} = sub {}; require $_";
+ eval "local \$SIG{'__WARN__'} = sub {}; require $module";
if($@)
{
- ($_) = $@ =~ /locate (.+?)(?:\.pm)? in \@INC/;
- $_ =~ s/\//::/g;
- push @missing_modules, $_;
+ push @missing_modules, $module;
}
}