diff options
author | pacien | 2020-09-08 20:21:26 +0200 |
---|---|---|
committer | pacien | 2020-09-08 20:21:55 +0200 |
commit | 31dcb2c5dd6a0546209f74dab49f5282f0a5bda4 (patch) | |
tree | d0374561df8bc14ba7cb69ad1a82ffa7156cc7c2 /app/src/main/java/org/pacien/tincapp/activities/status/networkinfo/VpnInterfaceConfigurationFormatter.kt | |
parent | 9d72cf6bbf426b9b8fa9f94d98d60f62f6081ed8 (diff) | |
download | tincapp-31dcb2c5dd6a0546209f74dab49f5282f0a5bda4.tar.gz |
treewide: fix trivial null assertion warnings
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/activities/status/networkinfo/VpnInterfaceConfigurationFormatter.kt')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/activities/status/networkinfo/VpnInterfaceConfigurationFormatter.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/activities/status/networkinfo/VpnInterfaceConfigurationFormatter.kt b/app/src/main/java/org/pacien/tincapp/activities/status/networkinfo/VpnInterfaceConfigurationFormatter.kt index 2956cb4..dcab449 100644 --- a/app/src/main/java/org/pacien/tincapp/activities/status/networkinfo/VpnInterfaceConfigurationFormatter.kt +++ b/app/src/main/java/org/pacien/tincapp/activities/status/networkinfo/VpnInterfaceConfigurationFormatter.kt | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon | 2 | * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon |
3 | * Copyright (C) 2017-2018 Pacien TRAN-GIRARD | 3 | * Copyright (C) 2017-2020 Pacien TRAN-GIRARD |
4 | * | 4 | * |
5 | * This program is free software: you can redistribute it and/or modify | 5 | * This program is free software: you can redistribute it and/or modify |
6 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by |
@@ -30,7 +30,7 @@ object VpnInterfaceConfigurationFormatter { | |||
30 | 30 | ||
31 | fun formatList(list: List<Any>?) = when { | 31 | fun formatList(list: List<Any>?) = when { |
32 | list != null && list.isNotEmpty() -> list.joinToString("\n", transform = this::formatListElement) | 32 | list != null && list.isNotEmpty() -> list.joinToString("\n", transform = this::formatListElement) |
33 | else -> resources.getString(R.string.status_network_info_value_none)!! | 33 | else -> resources.getString(R.string.status_network_info_value_none) |
34 | } | 34 | } |
35 | 35 | ||
36 | private fun formatListElement(element: Any) = when (element) { | 36 | private fun formatListElement(element: Any) = when (element) { |