From a61a5c7106bae9c86d653b943b42241a551a83ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Coye=20de=20Brune=CC=81lis?= Date: Thu, 13 Feb 2025 10:05:00 +0100 Subject: [PATCH] refactor: Quota check is public --- kDriveCore/Data/Models/Drive/Drive+Quota.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kDriveCore/Data/Models/Drive/Drive+Quota.swift b/kDriveCore/Data/Models/Drive/Drive+Quota.swift index 512a4689f..ca744f482 100644 --- a/kDriveCore/Data/Models/Drive/Drive+Quota.swift +++ b/kDriveCore/Data/Models/Drive/Drive+Quota.swift @@ -45,7 +45,7 @@ public final class DriveQuota: EmbeddedObject, Codable { } } -extension Drive { +public extension Drive { var dropboxQuotaExceeded: Bool { guard let quota, let dropbox = quota.dropbox else { return false } return dropbox.current ?? 0 >= dropbox.max