1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Apply suggestions from code review

Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
Damodar Lohani 2021-06-17 11:13:27 +05:45 committed by GitHub
parent 6c2117a750
commit 0c5072e8a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,7 @@ App::get('/v1/storage/buckets/:bucketId')
$bucket = $dbForInternal->getDocument('buckets', $bucketId);
if (empty($bucket->getId())) {
if ($bucket->isEmpty()) {
throw new Exception('Bucket not found', 404);
}