Reachability.swift
Reachability.swift copied to clipboard
Connection `.none` and `.unavailable` are mixed in the code
Hi,
Reading quickly the code I found some places where .none
and .unavailable
are mixed:
-
Connection.description
:unavailable
is "no connection" and.none
is... "unavailable" 🤔 - deprecated
isReachable
: comment says to compare to.none
and code compares to....unavailable
🤔
It makes things very unclear about what's the difference between the two (and misleading).