diff --git a/FlagsmithClient/Classes/Traits.swift b/FlagsmithClient/Classes/Traits.swift index 7001b7c..3103cc1 100644 --- a/FlagsmithClient/Classes/Traits.swift +++ b/FlagsmithClient/Classes/Traits.swift @@ -16,11 +16,11 @@ public struct Traits: Codable, Sendable { public let flags: [Flag] public let transient: Bool - init(traits: [Trait], identifier: String?, flags: [Flag] = [], transient: Bool? = false) { + init(traits: [Trait], identifier: String?, flags: [Flag] = [], transient: Bool = false) { self.traits = traits self.identifier = identifier self.flags = flags - self.transient = transient ?? false + self.transient = transient } public func encode(to encoder: any Encoder) throws {