From 7bee9cd5eac84dc7b5d964a6873d4d42438a7150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fo=C5=99t?= Date: Wed, 20 Nov 2024 12:51:14 +0100 Subject: [PATCH] fix: make Project.type non-optional (#78) --- Sources/XcodeGraph/Models/Project.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/XcodeGraph/Models/Project.swift b/Sources/XcodeGraph/Models/Project.swift index c369353..db1dff0 100644 --- a/Sources/XcodeGraph/Models/Project.swift +++ b/Sources/XcodeGraph/Models/Project.swift @@ -79,7 +79,7 @@ public struct Project: Hashable, Equatable, CustomStringConvertible, CustomDebug public var isExternal: Bool /// It represents the type of project. - public var type: ProjectType? + public var type: ProjectType // MARK: - Init @@ -146,6 +146,7 @@ public struct Project: Hashable, Equatable, CustomStringConvertible, CustomDebug self.resourceSynthesizers = resourceSynthesizers self.lastUpgradeCheck = lastUpgradeCheck self.isExternal = isExternal + type = .external(hash: nil) } /// Initializes the project with its attributes.