DnsConfig: get rid of unnecessary isEmpty check (#149)

* DnsConfig: remove unnecessary isEmpty check

Updates #cleanup

* DnsConfig: remove unnecessary isEmpty check

Updates #cleanup

* k
pull/150/head
kari-ts 4 months ago committed by GitHub
parent 1b42117791
commit a76b36506c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -42,11 +42,7 @@ public class DnsConfig {
//
// an empty string means the current DNS configuration could not be retrieved.
String getDnsConfigAsString() {
String s = getDnsConfigs();
if (!s.trim().isEmpty()) {
return s;
}
return "";
return getDnsConfigs().trim();
}
private String getDnsConfigs(){

Loading…
Cancel
Save