Skip to content

Commit 8447ce6

Browse files
chore: wrap open feature reason in debug (#247)
* chore: wrap openFeatureEvalReason in #if DEBUG flag to only be available for debug builds/testing * chore: rename debug openFeatureEvalReason method to createOFEvalReason
1 parent 84dd2d6 commit 8447ce6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

DevCycle/Models/UserConfig.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@ public struct EvalReason {
233233
return EvalReason(reason: "DEFAULT", details: details)
234234
}
235235

236-
public static func openFeatureEvalReason(reason: String) -> EvalReason {
237-
return EvalReason(reason: reason, details: "")
236+
#if DEBUG
237+
public static func createOFEvalReason(reason: String) -> EvalReason {
238+
return EvalReason(reason: reason, details: "OpenFeature Testing")
238239
}
240+
#endif
239241
}
240242

241243
public typealias EvalMetaData = [String: Any]

0 commit comments

Comments
 (0)