summaryrefslogtreecommitdiff
path: root/Hutch/Networking/ProjectService.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-13 20:07:53 -0500
committerChristian Cleberg <[email protected]>2026-04-13 20:07:53 -0500
commit312e535f400f31714b3750de5222a1f6a8e5bcda (patch)
treedfa0d9dfcfd08187befa79cf5d8afc4da9fef860 /Hutch/Networking/ProjectService.swift
parentfe1ccc69661603d419a642a450e4ac9e1258adb0 (diff)
downloadhutch-312e535f400f31714b3750de5222a1f6a8e5bcda.tar.gz
hutch-312e535f400f31714b3750de5222a1f6a8e5bcda.tar.bz2
hutch-312e535f400f31714b3750de5222a1f6a8e5bcda.zip
fix: sonarqube code smell fixesv3.1.4
Diffstat (limited to 'Hutch/Networking/ProjectService.swift')
-rw-r--r--Hutch/Networking/ProjectService.swift10
1 files changed, 5 insertions, 5 deletions
diff --git a/Hutch/Networking/ProjectService.swift b/Hutch/Networking/ProjectService.swift
index bd8ccdc..5e0e061 100644
--- a/Hutch/Networking/ProjectService.swift
+++ b/Hutch/Networking/ProjectService.swift
@@ -49,7 +49,7 @@ private struct ProjectSummaryPayload: Decodable, Sendable {
name = try container.decodeIfPresent(String.self, forKey: .name) ?? ""
description = try container.decodeIfPresent(String.self, forKey: .description)
website = try container.decodeIfPresent(String.self, forKey: .website)
- visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .public
+ visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .publicVisibility
tags = try container.decodeIfPresent([String].self, forKey: .tags) ?? []
updated = try container.decodeIfPresent(Date.self, forKey: .updated) ?? .distantPast
}
@@ -90,7 +90,7 @@ private struct ProjectDetailPayload: Decodable, Sendable {
name = try container.decodeIfPresent(String.self, forKey: .name) ?? ""
description = try container.decodeIfPresent(String.self, forKey: .description)
website = try container.decodeIfPresent(String.self, forKey: .website)
- visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .public
+ visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .publicVisibility
tags = try container.decodeIfPresent([String].self, forKey: .tags) ?? []
updated = try container.decodeIfPresent(Date.self, forKey: .updated) ?? .distantPast
mailingLists = try container.decodeIfPresent(ProjectMailingListPage.self, forKey: .mailingLists) ?? .empty
@@ -126,7 +126,7 @@ private struct ProjectMailingListPayload: Decodable, Sendable {
rid = try container.decode(String.self, forKey: .rid)
name = try container.decodeIfPresent(String.self, forKey: .name) ?? ""
description = try container.decodeIfPresent(String.self, forKey: .description)
- visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .public
+ visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .publicVisibility
owner = try container.decodeIfPresent(Entity.self, forKey: .owner) ?? Entity(canonicalName: "~unknown")
}
}
@@ -160,7 +160,7 @@ private struct ProjectSourcePayload: Decodable, Sendable {
rid = try container.decode(String.self, forKey: .rid)
name = try container.decodeIfPresent(String.self, forKey: .name) ?? ""
description = try container.decodeIfPresent(String.self, forKey: .description)
- visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .public
+ visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .publicVisibility
owner = try container.decodeIfPresent(Entity.self, forKey: .owner) ?? Entity(canonicalName: "~unknown")
repoType = try container.decodeIfPresent(Project.SourceRepo.RepoType.self, forKey: .repoType) ?? .git
}
@@ -193,7 +193,7 @@ private struct ProjectTrackerPayload: Decodable, Sendable {
rid = try container.decode(String.self, forKey: .rid)
name = try container.decodeIfPresent(String.self, forKey: .name) ?? ""
description = try container.decodeIfPresent(String.self, forKey: .description)
- visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .public
+ visibility = try container.decodeIfPresent(Visibility.self, forKey: .visibility) ?? .publicVisibility
owner = try container.decodeIfPresent(Entity.self, forKey: .owner) ?? Entity(canonicalName: "~unknown")
}
}