We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80462e7 commit cc91dbbCopy full SHA for cc91dbb
auth/oauth.go
@@ -195,11 +195,5 @@ func GetTokens() (*Tokens, error) {
195
196
func isNetworkError(err error) bool {
197
var netErr net.Error
198
- if errors.As(err, &netErr) {
199
- return true
200
- }
201
-
202
- // Handle DNS resolution errors directly
203
- var dnsErr *net.DNSError
204
- return errors.As(err, &dnsErr)
+ return errors.As(err, &netErr)
205
}
0 commit comments