Skip to content

Commit 87f001c

Browse files
committed
refact: lint
1 parent 56492ad commit 87f001c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Sources/VRCKit/Models/World/InstanceModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public extension Instance {
9595
public extension Instance.Platforms {
9696
/// Initialize from an array of UserPlatform
9797
/// - Parameter platforms: An array of UserPlatform
98-
init(platforms: [UserPlatform]) {
98+
init(_ platforms: [UserPlatform]) {
9999
self.init(
100100
android: platforms.contains(.android) ? 1 : 0,
101101
ios: platforms.contains(.ios) ? 1 : 0,

Sources/VRCKit/Protocols/AuthenticationServiceProtocol.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public protocol AuthenticationServiceProtocol: Sendable {
1212
/// - Returns: A boolean indicating if the user exists.
1313
func exists(userId: String) async throws -> Bool
1414

15-
/// Fetches the authenticated user's information or determines if two-factor authentication (2FA) verification is required.
16-
/// - Returns: An `Either<User, VerifyType>` result, which is `.left(User)` if the user is successfully authenticated,
17-
/// - Throws: An error if the request fails or if the response cannot be decoded. If an unexpected decoding issue occurs,
18-
/// it throws `VRCKitError.unexpected`.
15+
/// Fetches the authenticated user's information or determines if 2FA verification is required.
16+
/// - Returns: An `Either<User, VerifyType>` result.
17+
/// - Throws: An error if the request fails or if the response cannot be decoded.
18+
/// If an unexpected decoding issue occurs,it throws `VRCKitError.unexpected`.
1919
func loginUserInfo() async throws -> Either<User, VerifyType>
2020

2121
/// Verifies 2-factor authentication using either TOTP or Email OTP.

Sources/VRCKit/Protocols/ImageUrlRepresentableProtocol.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ public protocol ImageUrlRepresentable: Sendable {
1212
///
1313
/// - Parameters:
1414
/// - url: The original image URL to modify.
15-
/// - resolution: The desired image resolution as an `ImageResolution` value. The original resolution is `.origin`.
15+
/// - resolution: The desired image resolution as an `ImageResolution` value.
16+
/// The original resolution is `.origin`.
1617
///
1718
/// - Returns: A new URL with the last numeric component replaced by the specified resolution.
1819
func imageUrl(_ resolution: ImageResolution) -> URL?

0 commit comments

Comments
 (0)