Skip to content

Commit 97662f1

Browse files
author
Guilherme Souza
committed
nonisolated(unsafe) is only available in Swift 6
1 parent c537260 commit 97662f1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Sources/Storage/StorageFileApi.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ enum FileUpload {
5151
}
5252

5353
#if DEBUG
54-
// It is safe to mark it as unsafe, since this property is only used in tests for overriding the
55-
// boundary value, instead of using the random one.
56-
nonisolated(unsafe) var testingBoundary: String?
54+
#if compiler(>=6)
55+
// It is safe to mark it as unsafe, since this property is only used in tests for overriding the
56+
// boundary value, instead of using the random one.
57+
nonisolated(unsafe) var testingBoundary: String?
58+
#else
59+
var testingBoundary: String?
60+
#endif
5761
#endif
5862

5963
/// Supabase Storage File API

0 commit comments

Comments
 (0)