StorageBackend: drop a redundant cast
This commit is contained in:
@@ -113,7 +113,7 @@ final class StorageBackend implements IBackend {
|
|||||||
/** Whether the storage accepts the connection settings (files_external's own check). */
|
/** Whether the storage accepts the connection settings (files_external's own check). */
|
||||||
public function canConnect(): bool {
|
public function canConnect(): bool {
|
||||||
try {
|
try {
|
||||||
return !method_exists($this->storage, 'test') || (bool)$this->storage->test();
|
return !method_exists($this->storage, 'test') || $this->storage->test();
|
||||||
} catch (\Throwable) {
|
} catch (\Throwable) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user