Skip to content

Commit

Permalink
fixup! refactor: Clearer code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasl committed Nov 7, 2024
1 parent 632c3bf commit bfd5504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Confidence/FlagEvaluation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extension FlagResolution {
)
}

if let evaluation = checkBackendErrrs(resolvedFlag: resolvedFlag, defaultValue: defaultValue) {
if let evaluation = checkBackendErrors(resolvedFlag: resolvedFlag, defaultValue: defaultValue) {
return evaluation
}

Expand Down Expand Up @@ -128,7 +128,7 @@ extension FlagResolution {
}
// swiftlint:enable function_body_length

private func checkBackendErrrs<T>(resolvedFlag: ResolvedValue, defaultValue: T) -> Evaluation<T>? {
private func checkBackendErrors<T>(resolvedFlag: ResolvedValue, defaultValue: T) -> Evaluation<T>? {
if resolvedFlag.resolveReason == .targetingKeyError {
return Evaluation(
value: defaultValue,
Expand Down

0 comments on commit bfd5504

Please sign in to comment.