Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change static var to static let constants #106

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading