From e3001f26a0a60f6fe7cd28cbc873f04519865e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mads=20B=C3=B8geskov?= Date: Tue, 28 May 2024 10:36:51 +0200 Subject: [PATCH] :bug: Endlessly trying master (#147) --- Sources/SwaggerSwiftCore/Generator/Generator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwaggerSwiftCore/Generator/Generator.swift b/Sources/SwaggerSwiftCore/Generator/Generator.swift index 3c4d4af..13cbc6a 100644 --- a/Sources/SwaggerSwiftCore/Generator/Generator.swift +++ b/Sources/SwaggerSwiftCore/Generator/Generator.swift @@ -194,7 +194,7 @@ public struct Generator { log("Downloading Swagger at: \(url.absoluteString)") let (data, response) = try await fetchSwagger(request) if let httpResponse = response as? HTTPURLResponse, httpResponse.statusCode != 200 { - if branch != "master" || branch != "main" { + if branch != "master" && branch != "main" { log(" ⚠️ \(serviceName): Failed to download with custom branch ´\(branch)´ - Trying master instead.", error: true) return try await download( githubToken: githubToken,