diff --git a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt index 99a46041..d5645e61 100644 --- a/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt +++ b/ui/src/main/java/com/wireguard/android/model/ObservableTunnel.kt @@ -71,10 +71,11 @@ class ObservableTunnel internal constructor( } private set - val configAsync: CompletionStage = if (config == null) - manager.getTunnelConfig(this) - else - CompletableFuture.completedFuture(config) + val configAsync: CompletionStage + get() = if (config == null) + manager.getTunnelConfig(this) + else + CompletableFuture.completedFuture(config) fun setConfigAsync(config: Config): CompletionStage = if (config != this.config) manager.setTunnelConfig(this, config)