Skip to content

Commit 8f3f8d8

Browse files
authored
chore: Fix linting errors (#396)
1 parent 9f4f93a commit 8f3f8d8

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

LaunchDarkly/LaunchDarkly/LDClient.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -728,12 +728,12 @@ public class LDClient {
728728
}
729729

730730
static func start(serviceFactory: ClientServiceCreating?, config: LDConfig, context: LDContext? = nil, completion: (() -> Void)? = nil) {
731-
731+
732732
if serviceFactory != nil {
733733
get()?.close()
734734
}
735-
736-
var shouldCreateInstances = false;
735+
736+
var shouldCreateInstances = false
737737
instancesQueue.sync(flags: .barrier) {
738738
if instances != nil {
739739
os_log("%s LDClient.start() was called more than once!", log: config.logger, type: .debug, typeName(and: #function))
@@ -745,7 +745,7 @@ public class LDClient {
745745
shouldCreateInstances = true
746746
}
747747
}
748-
748+
749749
if !shouldCreateInstances {
750750
return
751751
}
@@ -775,7 +775,7 @@ public class LDClient {
775775
LDClient.instances?[name] = instance
776776
}
777777
}
778-
778+
779779
completionCheck()
780780
}
781781

LaunchDarkly/LaunchDarkly/Models/Hooks/Hook.swift

+5
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,19 @@ public protocol Hook {
1818
}
1919

2020
public extension Hook {
21+
/// Get metadata about the hook implementation.
2122
func metadata() -> Metadata {
2223
return Metadata(name: "UNDEFINED")
2324
}
2425

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

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

0 commit comments

Comments
 (0)