From bfd55044e3aea40b2e6dd4be99d64d8e17648940 Mon Sep 17 00:00:00 2001 From: Nicklas Lundin Date: Thu, 7 Nov 2024 18:18:35 +0100 Subject: [PATCH] fixup! refactor: Clearer code paths --- Sources/Confidence/FlagEvaluation.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Confidence/FlagEvaluation.swift b/Sources/Confidence/FlagEvaluation.swift index 775867db..d64e43ca 100644 --- a/Sources/Confidence/FlagEvaluation.swift +++ b/Sources/Confidence/FlagEvaluation.swift @@ -44,7 +44,7 @@ extension FlagResolution { ) } - if let evaluation = checkBackendErrrs(resolvedFlag: resolvedFlag, defaultValue: defaultValue) { + if let evaluation = checkBackendErrors(resolvedFlag: resolvedFlag, defaultValue: defaultValue) { return evaluation } @@ -128,7 +128,7 @@ extension FlagResolution { } // swiftlint:enable function_body_length - private func checkBackendErrrs(resolvedFlag: ResolvedValue, defaultValue: T) -> Evaluation? { + private func checkBackendErrors(resolvedFlag: ResolvedValue, defaultValue: T) -> Evaluation? { if resolvedFlag.resolveReason == .targetingKeyError { return Evaluation( value: defaultValue,