StorageBackend: drop a redundant cast

This commit is contained in:
2026-10-08 13:03:57 +02:00
parent 9775cdc475
commit 239aa1b923
+1 -1
View File
@@ -113,7 +113,7 @@ final class StorageBackend implements IBackend {
/** Whether the storage accepts the connection settings (files_external's own check). */
public function canConnect(): bool {
try {
return !method_exists($this->storage, 'test') || (bool)$this->storage->test();
return !method_exists($this->storage, 'test') || $this->storage->test();
} catch (\Throwable) {
return false;
}