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 11 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. // an empty string means the current DNS configuration could not be retrieved.
String getDnsConfigAsString() { String getDnsConfigAsString() {
String s = getDnsConfigs(); return getDnsConfigs().trim();
if (!s.trim().isEmpty()) {
return s;
}
return "";
} }
private String getDnsConfigs(){ private String getDnsConfigs(){

Loading…
Cancel
Save