Skip to content
Snippets Groups Projects

Partially fixed IntelliJ warnings (#361)

Merged Christopher Konkel requested to merge stu207811/theodolite_fork:Kotlin-Warning-Fixes into main
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
@@ -195,11 +195,9 @@ class BenchmarkStateChecker(
}
private fun <K, V> Map<K, V>.containsMatchLabels(matchLabels: Map<V, V>): Boolean {
private fun <K, V> Map<K, V>.containsMatchLabels(matchLabels: Map<K, V>): Boolean {
for (kv in matchLabels) {
// TODO: is this[...] even necessary?
@Suppress("UNCHECKED_CAST")
if (kv.value != this[kv.key as K]) {
if (kv.value != this[kv.key]) {
return false
}
}
Loading