Skip to content

Commit

Permalink
refactor: Remove useless data
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed Feb 27, 2024
1 parent 24ec317 commit e5b350d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extension ApiFetcher: RequestDispatchable {
parameters: nil)
}

return try await perform(request: request).data
return try await perform(request: request)
}

func dispatchNSURLSession<Result: Decodable>(_ requestable: Requestable) async throws -> Result {
Expand Down
4 changes: 2 additions & 2 deletions Sources/InfomaniakCore/Networking/ApiFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ open class ApiFetcher {
}

public func userOrganisations() async throws -> [OrganisationAccount] {
try await perform(request: authenticatedRequest(.organisationAccounts)).data
try await perform(request: authenticatedRequest(.organisationAccounts))
}

public func userProfile() async throws -> UserProfile {
try await perform(request: authenticatedRequest(.profile)).data
try await perform(request: authenticatedRequest(.profile))
}
}

Expand Down

0 comments on commit e5b350d

Please sign in to comment.