optimizing the code by removing the else and setting the value from the first moment

master
htrgouvea 2021-05-18 23:28:50 -03:00
parent 256d733bec
commit 3b47cc53cb
1 changed files with 2 additions and 7 deletions

View File

@ -9,8 +9,8 @@ package Nipe::Utils::Device {
my $id_distro = $config -> param("ID");
my %device = (
"username" => "",
"distribution" => ""
"username" => "debian-tor",
"distribution" => "debian"
);
if (($id_like =~ /[F,f]edora/) || ($id_distro =~ /[F,f]edora/)) {
@ -28,11 +28,6 @@ package Nipe::Utils::Device {
$device{distribution} = "void";
}
else {
$device{username} = "debian-tor";
$device{distribution} = "debian";
}
return %device;
}
}