Skip to content

Commit

Permalink
fix: lint issues (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavFitz committed Feb 6, 2023
1 parent 8be900c commit 09622f8
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/AlgoliaSearchClient/Client/AnalyticsClient.swift
Expand Up @@ -272,7 +272,7 @@ public extension AnalyticsClient {
- Returns: [ABTestsResponse] object
*/
func browseAllABTests(hitsPerPage: Int? = nil,
requestOptions: RequestOptions? = nil) throws -> [ABTestResponse] {
requestOptions: RequestOptions? = nil) throws -> [ABTestResponse] {
var responses: [ABTestResponse] = []
var page = 0
while true {
Expand Down
2 changes: 1 addition & 1 deletion Sources/AlgoliaSearchClient/Index/Index+Indexing.swift
Expand Up @@ -264,7 +264,7 @@ public extension Index {
- Returns: Requested record
*/
@discardableResult func deleteObject(withID objectID: ObjectID,
requestOptions: RequestOptions? = nil) throws -> WaitableWrapper<ObjectDeletion> {
requestOptions: RequestOptions? = nil) throws -> WaitableWrapper<ObjectDeletion> {
let command = Command.Indexing.DeleteObject(indexName: name, objectID: objectID, requestOptions: requestOptions)
return try execute(command)
}
Expand Down
Expand Up @@ -10,7 +10,7 @@ import Foundation
public struct APIKeyRevision: Codable {

/// The created or restored APIKey.
// public let key: APIKey
public let key: APIKey

/// The date at which the APIKey has been created or restored.
public let updatedAt: Date
Expand Down
1 change: 0 additions & 1 deletion Sources/AlgoliaSearchClient/Models/Places/Country.swift
Expand Up @@ -4,7 +4,6 @@
//
// Created by Vladislav Fitc on 12/04/2020.
//
// swiftlint:disable type_body_length

import Foundation

Expand Down
Expand Up @@ -44,7 +44,7 @@ class HTTPRequestBuilder {
func build<Response: Decodable, Output>(for command: AlgoliaCommand, transform: @escaping (Response) -> Output, responseType: Output.Type) -> HTTPRequest<Response, Output> {
return build(for: command,
transform: transform,
with: { (_:HTTPRequest<Response, Output>.Result) in })
with: { (_: HTTPRequest<Response, Output>.Result) in })
}

}
Expand Up @@ -20,6 +20,7 @@ class InsightsIntegrationTests: IntegrationTestCase {
}

func insights() throws {
Logger.minSeverityLevel = .trace

let insightsClient = InsightsClient(appID: client.applicationID, apiKey: client.apiKey)

Expand Down

0 comments on commit 09622f8

Please sign in to comment.