Skip to content

Commit

Permalink
Simplify back to just #if os(iOS). Checked with a swift-format run …
Browse files Browse the repository at this point in the history
…(from Xcode 16's `xcrun swift-format`).
  • Loading branch information
millenomi committed Jan 17, 2025
1 parent 372fbda commit c1d328c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/Hummingbird/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ import NIOPosix
import ServiceLifecycle
import UnixSignals

#if os(iOS) && canImport(NIOTransportServices)
// Import for NIOTSEventLoopGroup, which we're accessing
// with #if os(iOS), below.
#if os(iOS)
import NIOTransportServices
#endif

Expand All @@ -36,7 +34,7 @@ public enum EventLoopGroupProvider {
public var eventLoopGroup: EventLoopGroup {
switch self {
case .singleton:
#if os(iOS) && canImport(NIOTransportServices)
#if os(iOS)
return NIOTSEventLoopGroup.singleton
#else
return MultiThreadedEventLoopGroup.singleton
Expand Down

0 comments on commit c1d328c

Please sign in to comment.