Skip to content
Snippets Groups Projects
Commit 25380581 authored by Sören Henning's avatar Sören Henning
Browse files

Add hint on compiler warning

parent 353a8446
No related branches found
No related tags found
No related merge requests found
Pipeline #7079 passed
...@@ -21,12 +21,13 @@ class ResourceSets: KubernetesResource { ...@@ -21,12 +21,13 @@ class ResourceSets: KubernetesResource {
var fileSystem: FileSystemResourceSet? = null var fileSystem: FileSystemResourceSet? = null
fun loadResourceSet(client: NamespacedKubernetesClient): Collection<Pair<String, HasMetadata>> { fun loadResourceSet(client: NamespacedKubernetesClient): Collection<Pair<String, HasMetadata>> {
// TODO Find out whether field access (::configMap) is really what we want to do here (see #362)
return if (::configMap != null) { return if (::configMap != null) {
configMap?.getResourceSet(client= client) !! configMap?.getResourceSet(client= client) !!
} else if (::fileSystem != null) { } else if (::fileSystem != null) {
fileSystem?.getResourceSet(client= client ) !! fileSystem?.getResourceSet(client= client ) !!
} else { } else {
throw DeploymentFailedException("could not load resourceSet.") throw DeploymentFailedException("Could not load resourceSet.")
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment