Skip to content

Commit a66aed7

Browse files
Philipp HomannPhilipp Homann
authored andcommitted
avoid build errors for MacOS
1 parent 895a033 commit a66aed7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/UsefulNetworkLayer/NetworkLayer/NetworkLayer+Cache.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ extension NetworkLayer {
3636
self.initialize()
3737
}
3838

39-
#if !os(macOS)
39+
4040
/**
4141
Initialize cache with the specified capacity preferences and path.
4242
- parameter memoryCapacity: The RAM demand. Set `0` if you don't want to use temporary memory
4343
- parameter diskCapacity: The storage demand. Set `0` if you don't want to save cache indefinitely
4444
- parameter diskPath: The path for the custom location in the storage to save
4545
*/
46+
#if !os(macOS)
4647
override init(memoryCapacity: Int, diskCapacity: Int, diskPath path: String?) {
4748
super.init(memoryCapacity: memoryCapacity, diskCapacity: diskCapacity, diskPath: path)
4849
self.initialize()

0 commit comments

Comments
 (0)