resolve unsafe operator

This commit is contained in:
az 2022-08-21 13:06:49 +02:00
parent 77351933fe
commit 4cc1ce756a

View file

@ -66,7 +66,7 @@ private fun Prov.provisionGrafanaSanitized(
submodules: List<String>?,
grafanaConfigResolved: GrafanaAgentConfigResolved?) = task {
if (submodules!!.contains(ServerSubmodule.GRAFANA.name.lowercase())) {
if (submodules != null && submodules.contains(ServerSubmodule.GRAFANA.name.lowercase())) {
if (grafanaConfigResolved == null) {
println("ERROR: Could not find grafana config.")
exitProcess(7)