diff options
Diffstat (limited to 'Sora/Data')
| -rw-r--r-- | Sora/Data/Booru/BooruManager.swift | 6 | ||||
| -rw-r--r-- | Sora/Data/Booru/BooruProvider.swift | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Sora/Data/Booru/BooruManager.swift b/Sora/Data/Booru/BooruManager.swift index 3c5f49b..dd63367 100644 --- a/Sora/Data/Booru/BooruManager.swift +++ b/Sora/Data/Booru/BooruManager.swift @@ -134,11 +134,11 @@ class BooruManager: ObservableObject { private func urlForTags(limit: Int) -> URL? { switch provider { case .yandere: - return URL(string: "https://yande.re/tag.xml?limit=\(limit)") + URL(string: "https://yande.re/tag.xml?limit=\(limit)") case .safebooru: - return URL(string: "https://safebooru.org/index.php?page=dapi&s=tag&q=index&limit=\(limit)") + URL(string: "https://safebooru.org/index.php?page=dapi&s=tag&q=index&limit=\(limit)") default: - return nil + nil } } } diff --git a/Sora/Data/Booru/BooruProvider.swift b/Sora/Data/Booru/BooruProvider.swift index 3b3b126..73bb4f2 100644 --- a/Sora/Data/Booru/BooruProvider.swift +++ b/Sora/Data/Booru/BooruProvider.swift @@ -5,9 +5,9 @@ enum BooruProvider: String, CaseIterable, Decodable, Encodable { func formatted() -> String { switch self { case .yandere: - return "yande.re" + "yande.re" case .safebooru: - return "Safebooru" + "Safebooru" } } } |