Skip to content

Commit 4783cb2

Browse files
committed
remove swiftlint warnings
1 parent 10a3270 commit 4783cb2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Sources/Web3Core/KeystoreManager/EtherscanTransactionChecker.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public struct EtherscanTransactionChecker: TransactionChecker {
1414
self.urlSession = URLSessionProxyImplementation(urlSession: urlSession)
1515
self.apiKey = apiKey
1616
}
17-
17+
1818
internal init(urlSession: URLSessionProxy, apiKey: String) {
1919
self.urlSession = urlSession
2020
self.apiKey = apiKey
@@ -41,7 +41,7 @@ extension EtherscanTransactionChecker {
4141

4242
public enum EtherscanTransactionCheckerError: LocalizedError, Equatable {
4343
case invalidUrl(url: String)
44-
44+
4545
public var errorDescription: String? {
4646
switch self {
4747
case let .invalidUrl(url):
@@ -56,7 +56,7 @@ internal protocol URLSessionProxy {
5656

5757
internal struct URLSessionProxyImplementation: URLSessionProxy {
5858
let urlSession: URLSession
59-
59+
6060
func data(for request: URLRequest) async throws -> (Data, URLResponse) {
6161
try await urlSession.data(for: request)
6262
}

Tests/web3swiftTests/remoteTests/EtherscanTransactionCheckerTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final class EtherscanTransactionCheckerTests: XCTestCase {
4040
XCTAssertTrue(true)
4141
}
4242
}
43-
43+
4444
func testInitURLError() async throws {
4545
do {
4646
let sut = EtherscanTransactionChecker(urlSession: URLSessionMock(), apiKey: testApiKey)
@@ -66,7 +66,6 @@ final class EtherscanTransactionCheckerTests: XCTestCase {
6666
}
6767
}
6868

69-
7069
// MARK: - EtherscanTransactionCheckerErrorTests
7170

7271
final class EtherscanTransactionCheckerErrorTests: XCTestCase {

0 commit comments

Comments
 (0)