diff --git a/Sources/KarrotCodableKit/BetterCodable/DataValue/DataValue.swift b/Sources/KarrotCodableKit/BetterCodable/DataValue/DataValue.swift index 0219c4d..ee7e5f1 100644 --- a/Sources/KarrotCodableKit/BetterCodable/DataValue/DataValue.swift +++ b/Sources/KarrotCodableKit/BetterCodable/DataValue/DataValue.swift @@ -38,7 +38,9 @@ public struct DataValue { } #if DEBUG - public var projectedValue: ResilientProjectedValue { ResilientProjectedValue(outcome: outcome) } + public var projectedValue: ResilientProjectedValue { + ResilientProjectedValue(outcome: outcome) + } #endif } diff --git a/Sources/KarrotCodableKit/BetterCodable/DateValue/DateValue.swift b/Sources/KarrotCodableKit/BetterCodable/DateValue/DateValue.swift index 73f929b..f3333f8 100644 --- a/Sources/KarrotCodableKit/BetterCodable/DateValue/DateValue.swift +++ b/Sources/KarrotCodableKit/BetterCodable/DateValue/DateValue.swift @@ -38,7 +38,9 @@ public struct DateValue { } #if DEBUG - public var projectedValue: ResilientProjectedValue { ResilientProjectedValue(outcome: outcome) } + public var projectedValue: ResilientProjectedValue { + ResilientProjectedValue(outcome: outcome) + } #endif } diff --git a/Sources/KarrotCodableKit/BetterCodable/DateValue/OptionalDateValue.swift b/Sources/KarrotCodableKit/BetterCodable/DateValue/OptionalDateValue.swift index e9f3957..634203f 100644 --- a/Sources/KarrotCodableKit/BetterCodable/DateValue/OptionalDateValue.swift +++ b/Sources/KarrotCodableKit/BetterCodable/DateValue/OptionalDateValue.swift @@ -39,7 +39,9 @@ public struct OptionalDateValue { } #if DEBUG - public var projectedValue: ResilientProjectedValue { ResilientProjectedValue(outcome: outcome) } + public var projectedValue: ResilientProjectedValue { + ResilientProjectedValue(outcome: outcome) + } #endif } diff --git a/Sources/KarrotCodableKit/BetterCodable/Defaults/DefaultCodable.swift b/Sources/KarrotCodableKit/BetterCodable/Defaults/DefaultCodable.swift index 4d3ae59..677ef59 100644 --- a/Sources/KarrotCodableKit/BetterCodable/Defaults/DefaultCodable.swift +++ b/Sources/KarrotCodableKit/BetterCodable/Defaults/DefaultCodable.swift @@ -49,7 +49,9 @@ public struct DefaultCodable { } #if DEBUG - public var projectedValue: ResilientProjectedValue { ResilientProjectedValue(outcome: outcome) } + public var projectedValue: ResilientProjectedValue { + ResilientProjectedValue(outcome: outcome) + } #endif } diff --git a/Sources/KarrotCodableKit/BetterCodable/LossyValue/LossyArray.swift b/Sources/KarrotCodableKit/BetterCodable/LossyValue/LossyArray.swift index dd68a75..edc09c6 100644 --- a/Sources/KarrotCodableKit/BetterCodable/LossyValue/LossyArray.swift +++ b/Sources/KarrotCodableKit/BetterCodable/LossyValue/LossyArray.swift @@ -29,7 +29,9 @@ public struct LossyArray { } #if DEBUG - public var projectedValue: ResilientArrayProjectedValue { ResilientArrayProjectedValue(outcome: outcome) } + public var projectedValue: ResilientArrayProjectedValue { + ResilientArrayProjectedValue(outcome: outcome) + } #endif } diff --git a/Sources/KarrotCodableKit/PolymorphicCodable/DefaultEmptyPolymorphicArrayValue.swift b/Sources/KarrotCodableKit/PolymorphicCodable/DefaultEmptyPolymorphicArrayValue.swift index 2b89fda..5344e32 100644 --- a/Sources/KarrotCodableKit/PolymorphicCodable/DefaultEmptyPolymorphicArrayValue.swift +++ b/Sources/KarrotCodableKit/PolymorphicCodable/DefaultEmptyPolymorphicArrayValue.swift @@ -49,11 +49,6 @@ public struct DefaultEmptyPolymorphicArrayValue public var projectedValue: PolymorphicProjectedValue { PolymorphicProjectedValue(outcome: outcome) } - #else - /// In non-DEBUG builds, accessing projectedValue is a programmer error - public var projectedValue: Never { - fatalError("@\(Self.self) projectedValue should not be used in non-DEBUG builds") - } #endif } diff --git a/Sources/KarrotCodableKit/PolymorphicCodable/PolymorphicLossyArrayValue.swift b/Sources/KarrotCodableKit/PolymorphicCodable/PolymorphicLossyArrayValue.swift index f203abd..9af5b39 100644 --- a/Sources/KarrotCodableKit/PolymorphicCodable/PolymorphicLossyArrayValue.swift +++ b/Sources/KarrotCodableKit/PolymorphicCodable/PolymorphicLossyArrayValue.swift @@ -78,11 +78,6 @@ public struct PolymorphicLossyArrayValue { PolymorphicLossyArrayProjectedValue(outcome: outcome, results: results) } - #else - /// In non-DEBUG builds, accessing projectedValue is a programmer error - public var projectedValue: Never { - fatalError("@\(Self.self) projectedValue should not be used in non-DEBUG builds") - } #endif } diff --git a/Sources/KarrotCodableKit/PolymorphicCodable/PolymorphicValue.swift b/Sources/KarrotCodableKit/PolymorphicCodable/PolymorphicValue.swift index ec38d56..4b5389e 100644 --- a/Sources/KarrotCodableKit/PolymorphicCodable/PolymorphicValue.swift +++ b/Sources/KarrotCodableKit/PolymorphicCodable/PolymorphicValue.swift @@ -38,7 +38,9 @@ public struct PolymorphicValue { } #if DEBUG - public var projectedValue: PolymorphicProjectedValue { PolymorphicProjectedValue(outcome: outcome) } + public var projectedValue: PolymorphicProjectedValue { + PolymorphicProjectedValue(outcome: outcome) + } #endif }