optimizing the code by removing the else and setting the value from the first moment
parent
256d733bec
commit
3b47cc53cb
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue