Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Merge requests
!276
Partially fixed IntelliJ warnings (
#361
)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Partially fixed IntelliJ warnings (
#361
)
stu207811/theodolite_fork:Kotlin-Warning-Fixes
into
main
Overview
3
Commits
11
Pipelines
4
Changes
1
Merged
Christopher Konkel
requested to merge
stu207811/theodolite_fork:Kotlin-Warning-Fixes
into
main
2 years ago
Overview
3
Commits
11
Pipelines
4
Changes
1
Expand
Partially addressing
#361
and fixed more straight-forward IntelliJ warnings.
Edited
2 years ago
by
Christopher Konkel
0
0
Merge request reports
Viewing commit
3d7ec2d7
Prev
Next
Show latest version
1 file
+
2
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
3d7ec2d7
fixed parameter type in private method and removed unnecessary type cast
· 3d7ec2d7
JustAnotherChristoph
authored
2 years ago
theodolite/src/main/kotlin/rocks/theodolite/kubernetes/operator/BenchmarkStateChecker.kt
+
2
−
4
Options
@@ -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