Skip to content

Commit

Permalink
refactor: rename var name
Browse files Browse the repository at this point in the history
  • Loading branch information
cre8ivejp committed Jul 3, 2023
1 parent cdcd997 commit eb2cf27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bucketeer/Sources/Public/BKTConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ extension BKTConfig {
}

private init(with builder: Builder) throws {
guard let apiKeyForSDK = builder.apiKey, apiKeyForSDK.isNotEmpty() else {
guard let apiKey = builder.apiKey, apiKey.isNotEmpty() else {
throw BKTError.illegalArgument(message: "apiKey is required")
}
guard let apiEndpoint = builder.apiEndpoint, apiEndpoint.isNotEmpty() else {
Expand Down Expand Up @@ -165,7 +165,7 @@ extension BKTConfig {

// Use the current init method
self = BKTConfig(
apiKey: apiKeyForSDK,
apiKey: apiKey,
apiEndpoint: URL(string: apiEndpoint)!,
featureTag: featureTag,
eventsFlushInterval: eventsFlushInterval,
Expand Down

0 comments on commit eb2cf27

Please sign in to comment.