Skip to content

Commit

Permalink
🐛 Endlessly trying master (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsBogeskov authored May 28, 2024
1 parent a571e86 commit e3001f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwaggerSwiftCore/Generator/Generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e3001f2

Please sign in to comment.