Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from spotify/typo
Browse files Browse the repository at this point in the history
Typo
  • Loading branch information
fabriziodemaria authored Mar 6, 2023
2 parents 1103a58 + 452beaa commit c16d927
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/OpenFeature/Hook.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public enum AnyHook {
case double(any DoubleHook)
case object(any ObjectHook)

public func suppoprtsFlagValueType(flagValueType: FlagValueType) -> Bool {
public func supportsFlagValueType(flagValueType: FlagValueType) -> Bool {
switch self {
case .boolean(let booleanHook):
return booleanHook.supportsFlagValueType(flagValueType: flagValueType)
Expand Down
8 changes: 4 additions & 4 deletions Sources/OpenFeature/HookSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class HookSupport {
flagValueType: FlagValueType, hookCtx: HookContext<T>, error: Error, hooks: [AnyHook], hints: [String: Any]
) {
hooks
.filter { hook in hook.suppoprtsFlagValueType(flagValueType: flagValueType) }
.filter { hook in hook.supportsFlagValueType(flagValueType: flagValueType) }
.forEach { hook in
switch hook {
case .boolean(let booleanHook):
Expand Down Expand Up @@ -37,7 +37,7 @@ class HookSupport {
func afterAllHooks<T>(flagValueType: FlagValueType, hookCtx: HookContext<T>, hooks: [AnyHook], hints: [String: Any])
{
hooks
.filter { hook in hook.suppoprtsFlagValueType(flagValueType: flagValueType) }
.filter { hook in hook.supportsFlagValueType(flagValueType: flagValueType) }
.forEach { hook in
switch hook {
case .boolean(let booleanHook):
Expand Down Expand Up @@ -72,7 +72,7 @@ class HookSupport {
hints: [String: Any]
) throws {
hooks
.filter { hook in hook.suppoprtsFlagValueType(flagValueType: flagValueType) }
.filter { hook in hook.supportsFlagValueType(flagValueType: flagValueType) }
.forEach { hook in
switch hook {
case .boolean(let booleanHook):
Expand Down Expand Up @@ -115,7 +115,7 @@ class HookSupport {
let result =
hooks
.reversed()
.filter { hook in hook.suppoprtsFlagValueType(flagValueType: flagValueType) }
.filter { hook in hook.supportsFlagValueType(flagValueType: flagValueType) }
.compactMap { hook in
switch hook {
case .boolean(let booleanHook):
Expand Down

0 comments on commit c16d927

Please sign in to comment.