1
0
mirror of https://github.com/square/okhttp.git synced 2025-07-31 05:04:26 +03:00

Replace !isEmpty with isNotEmpty

This commit is contained in:
Tang HuaiZhe
2019-05-25 11:59:23 +08:00
parent 2a9ac09cf1
commit 376b9a4e59
5 changed files with 12 additions and 16 deletions

View File

@ -103,7 +103,7 @@ class DnsOverHttps internal constructor(builder: Builder) : Dns {
executeRequests(hostname, networkRequests, results, failures)
return if (!results.isEmpty()) {
return if (results.isNotEmpty()) {
results
} else {
throwBestFailure(hostname, failures)