From e74b51a0744467828a3b7ff22ec62e79855684f6 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Tue, 8 Oct 2024 15:55:13 +0100 Subject: [PATCH] fix arg type --- FlagsmithClient/Classes/Traits.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {