Skip to content

Commit

Permalink
feat: Expose getFeature function (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
polok authored Oct 11, 2023
1 parent 0ffe8c4 commit 90a5ebf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/FeaturevisorSDK/Instance+Evaluation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,6 @@ extension FeaturevisorInstance {

// MARK: - Bucketing

fileprivate func getFeature(byKey featureKey: String) -> Feature? {
return self.datafileReader.getFeature(featureKey)
}

private func getBucketKey(feature: Feature, context: Context) -> BucketKey {
let featureKey = feature.key

Expand Down
4 changes: 4 additions & 0 deletions Sources/FeaturevisorSDK/Instance+Feature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ extension FeaturevisorInstance {

// MARK: - Feature

public func getFeature(byKey featureKey: String) -> Feature? {
return datafileReader.getFeature(featureKey)
}

func findForceFromFeature(
_ feature: Feature,
context: Context,
Expand Down

0 comments on commit 90a5ebf

Please sign in to comment.