Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 66cbe79

Browse files
committed
fix: broken generation
1 parent 581fab9 commit 66cbe79

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ Install `spmgen` CLI
2323

2424
### Installation
2525

26-
#### Homebrew
27-
28-
```bash
29-
brew install edudo-inc/formulae/spmgen
30-
```
26+
> Homebrew support will be added soon
3127
3228
#### Makefile
3329

‎Sources/SPMGenLib/ResourcesCommand/ResourceExtensionsRendering.swift‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,17 +373,17 @@ func renderStaticFactoryForFontResource() -> String {
373373
NSFontManager.shared.availableFontFamilies.map { family in
374374
NSFontManager.shared.availableMembers(ofFontFamily: family).map { memebers in
375375
(family, memebers.compactMap { $0.first as? String })
376-
}.or((family, [String]()))
376+
} ?? (family, [String]())
377377
}
378378
}
379-
379+
380380
public static func installedFontset() -> Set<String> {
381381
Set(
382382
(CTFontManagerCopyAvailableFontFamilyNames() as Array).flatMap { family -> [String] in
383383
if let family = family as? String {
384384
return NSFontManager.shared.availableMembers(ofFontFamily: family)
385385
.map { $0.compactMap { $0.first as? String } }
386-
.or([String]())
386+
?? [String]()
387387
} else {
388388
return [String]()
389389
}

0 commit comments

Comments
 (0)