Commit 0823612c authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor(frontend): create var without if

parent ce3716d1
......@@ -98,7 +98,7 @@ sub _list_machines_user($rvd, $args) {
my $user = Ravada::Auth::SQL->new(name => $login)
or die "Error: uknown user $login";
my $client = $args->{client} if exists $args->{client};
my $client = $args->{client};
my $ret = $rvd->list_machines_user($user, {client => $client});
return $ret;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment