removed unnecessary if-statement
This commit is contained in:
parent
a169255346
commit
f13c9517d3
@ -342,9 +342,6 @@ class Server implements CallbackListener {
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function checkAccess($directory) {
|
public function checkAccess($directory) {
|
||||||
if (!$directory) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return (is_dir($directory) && is_writable($directory));
|
return (is_dir($directory) && is_writable($directory));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user