Skip to content

Commit

Permalink
chore: compatibility with new swiftlint version on github runner (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
crleona authored Sep 10, 2024
1 parent 255c7ee commit 5987d39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Amplitude/ObjC/ObjCPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class ObjCPlugin: NSObject {
public init(
type: PluginType,
execute: @escaping (ObjCBaseEvent) -> ObjCBaseEvent?,
flush: @escaping() -> Void)
flush: @escaping () -> Void)
{
self.type = type
self.setup = nil
Expand Down
2 changes: 1 addition & 1 deletion Tests/AmplitudeTests/Utilities/HttpClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final class HttpClientTests: XCTestCase {
return XCTFail("not getting httpError error")
}
XCTAssertEqual(code, 400)
XCTAssertTrue(String(decoding: data!, as: UTF8.self).contains("Invalid API key: testApiKey"))
XCTAssertTrue(String(data: data!, encoding: .utf8)!.contains("Invalid API key: testApiKey"))
asyncExpectation.fulfill()
}
_ = XCTWaiter.wait(for: [asyncExpectation], timeout: 5)
Expand Down

0 comments on commit 5987d39

Please sign in to comment.