Skip to content

Commit

Permalink
chore: Fix linting errors (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Jul 16, 2024
1 parent 9f4f93a commit 8f3f8d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LaunchDarkly/LaunchDarkly/LDClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -728,12 +728,12 @@ public class LDClient {
}

static func start(serviceFactory: ClientServiceCreating?, config: LDConfig, context: LDContext? = nil, completion: (() -> Void)? = nil) {

if serviceFactory != nil {
get()?.close()
}
var shouldCreateInstances = false;

var shouldCreateInstances = false
instancesQueue.sync(flags: .barrier) {
if instances != nil {
os_log("%s LDClient.start() was called more than once!", log: config.logger, type: .debug, typeName(and: #function))
Expand All @@ -745,7 +745,7 @@ public class LDClient {
shouldCreateInstances = true
}
}

if !shouldCreateInstances {
return
}
Expand Down Expand Up @@ -775,7 +775,7 @@ public class LDClient {
LDClient.instances?[name] = instance
}
}

completionCheck()
}

Expand Down
5 changes: 5 additions & 0 deletions LaunchDarkly/LaunchDarkly/Models/Hooks/Hook.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ public protocol Hook {
}

public extension Hook {
/// Get metadata about the hook implementation.
func metadata() -> Metadata {
return Metadata(name: "UNDEFINED")
}

/// The before method is called during the execution of a variation method before the flag value has been
/// determined. The method is executed synchronously.
func beforeEvaluation(seriesContext: EvaluationSeriesContext, seriesData: EvaluationSeriesData) -> EvaluationSeriesData {
return seriesData
}

/// The after method is called during the execution of the variation method after the flag value has been
/// determined. The method is executed synchronously.
func afterEvaluation(seriesContext: EvaluationSeriesContext, seriesData: EvaluationSeriesData, evaluationDetail: LDEvaluationDetail<LDValue>) -> EvaluationSeriesData {
return seriesData
}
Expand Down

0 comments on commit 8f3f8d8

Please sign in to comment.