damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit aeafdccb028b7a200f23215eb89844f9f209e688
parent f37957f47e61847261ec65e8741d64a7fb417b16
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Thu,  8 Feb 2024 01:25:30 +0000

Non-functional auto-formatter refactor

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Models/Purple/DamusPurpleEnvironment.swift | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/damus/Models/Purple/DamusPurpleEnvironment.swift b/damus/Models/Purple/DamusPurpleEnvironment.swift @@ -11,7 +11,7 @@ enum DamusPurpleEnvironment: String, CaseIterable, Codable, Identifiable, String case local_test case staging case production - + func text_description() -> String { switch self { case .local_test: @@ -22,7 +22,7 @@ enum DamusPurpleEnvironment: String, CaseIterable, Codable, Identifiable, String return NSLocalizedString("Production", comment: "Label indicating the production environment for Damus Purple") } } - + func api_base_url() -> URL { switch self { case .local_test: @@ -33,7 +33,7 @@ enum DamusPurpleEnvironment: String, CaseIterable, Codable, Identifiable, String Constants.PURPLE_API_PRODUCTION_BASE_URL } } - + func purple_landing_page_url() -> URL { switch self { case .local_test: @@ -44,7 +44,7 @@ enum DamusPurpleEnvironment: String, CaseIterable, Codable, Identifiable, String Constants.PURPLE_LANDING_PAGE_PRODUCTION_URL } } - + func damus_website_url() -> URL { switch self { case .local_test: @@ -55,15 +55,15 @@ enum DamusPurpleEnvironment: String, CaseIterable, Codable, Identifiable, String Constants.DAMUS_WEBSITE_PRODUCTION_URL } } - + init?(from string: String) { guard let initialized = Self.init(rawValue: string) else { return nil } self = initialized } - + func to_string() -> String { return self.rawValue } - + var id: String { self.rawValue } }