Skip to content

Commit

Permalink
Change static var to static let constants
Browse files Browse the repository at this point in the history
  • Loading branch information
mkj-is committed Nov 22, 2023
1 parent 46528ab commit 699c2b4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/FTAPIKit/APIError+Standard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ public enum APIErrorStandard: APIError {
}
}

public static var unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
public static let unhandled: Standard = .unhandled(data: nil, response: nil, error: nil)
}
2 changes: 1 addition & 1 deletion Tests/FTAPIKitTests/AsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class AsyncTests: XCTestCase {
XCTAssertEqual(user, response.json)
}

static var allTests = [
static let allTests = [
("testCallWithoutResponse", testCallWithoutResponse),
("testCallWithData", testCallWithData),
("testCallParsingResponse", testCallParsingResponse)
Expand Down
2 changes: 1 addition & 1 deletion Tests/FTAPIKitTests/Mockups/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ struct ThrowawayAPIError: APIError {
self.init()
}

static var unhandled = Self()
static let unhandled = Self()
}
2 changes: 1 addition & 1 deletion Tests/FTAPIKitTests/ResponseTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ final class ResponseTests: XCTestCase {
wait(for: [expectation], timeout: timeout)
}

static var allTests = [
static let allTests = [
("testGet", testGet),
("testClientError", testClientError),
("testServerError", testServerError),
Expand Down
2 changes: 1 addition & 1 deletion Tests/FTAPIKitTests/URLQueryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final class URLQueryTests: XCTestCase {
XCTAssertEqual(query.percentEncoded, "a=&b=")
}

static var allTests = [
static let allTests = [
("testSpaceEncoding", testSpaceEncoding),
("testDelimitersEncoding", testDelimitersEncoding),
("testQueryAppending", testQueryAppending),
Expand Down

0 comments on commit 699c2b4

Please sign in to comment.