Commit a3b7f84a authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fix sonar warning: do not wrap boolean return in if/else

parent 9bba948e
......@@ -201,11 +201,7 @@ class serviceRepository extends simpleService
if (!isset($attrs['FAIrepository'])) {
return FALSE;
}
if (preg_match('/'.preg_quote($distribution, '/').'$/', $attrs['FAIrepository'][0])) {
return TRUE;
} else {
return FALSE;
}
return preg_match('/'.preg_quote($distribution, '/').'$/', $attrs['FAIrepository'][0]);
}
function ldap_save()
......
Markdown is supported
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