Skip to content

Commit

Permalink
refact: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
makinosp committed Nov 4, 2024
1 parent 56492ad commit 87f001c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/VRCKit/Models/World/InstanceModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public extension Instance {
public extension Instance.Platforms {
/// Initialize from an array of UserPlatform
/// - Parameter platforms: An array of UserPlatform
init(platforms: [UserPlatform]) {
init(_ platforms: [UserPlatform]) {
self.init(
android: platforms.contains(.android) ? 1 : 0,
ios: platforms.contains(.ios) ? 1 : 0,
Expand Down
8 changes: 4 additions & 4 deletions Sources/VRCKit/Protocols/AuthenticationServiceProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public protocol AuthenticationServiceProtocol: Sendable {
/// - Returns: A boolean indicating if the user exists.
func exists(userId: String) async throws -> Bool

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

/// Verifies 2-factor authentication using either TOTP or Email OTP.
Expand Down
3 changes: 2 additions & 1 deletion Sources/VRCKit/Protocols/ImageUrlRepresentableProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public protocol ImageUrlRepresentable: Sendable {
///
/// - Parameters:
/// - url: The original image URL to modify.
/// - resolution: The desired image resolution as an `ImageResolution` value. The original resolution is `.origin`.
/// - resolution: The desired image resolution as an `ImageResolution` value.
/// The original resolution is `.origin`.
///
/// - Returns: A new URL with the last numeric component replaced by the specified resolution.
func imageUrl(_ resolution: ImageResolution) -> URL?
Expand Down

0 comments on commit 87f001c

Please sign in to comment.