Skip to content

Commit

Permalink
Switched conditional build to detect by OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoMachorro committed Jul 23, 2023
1 parent 16fd460 commit 8b15011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftGravatar/SwiftGravatar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ extension GravatarProfile {
}

// WISHLIST: Port getProfile to FoundationNetwork based platforms, URLSession compatibility
#if !canImport(FoundationNetwork)
#if !os(Linux)
// Request JSON Profile Data from Gravatar
// Docs: https://en.gravatar.com/site/implement/profiles/json/
public static func getProfile(using email: String) async throws -> GravatarProfile? {
Expand All @@ -103,7 +103,7 @@ extension GravatarProfile {
}
return nil
}
#endif
#endif

/* SWIFTNIO
static func get(using email: String, on request: Request) -> EventLoopFuture<GravatarProfile> {
Expand Down

0 comments on commit 8b15011

Please sign in to comment.