Skip to content

Commit 554e7f1

Browse files
committed
Remove unused expressions
1 parent 664c383 commit 554e7f1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -814,10 +814,6 @@ class CoderWorkspacesStepView(val setNextButtonEnabled: (Boolean) -> Unit) : Cod
814814

815815
override fun getComparator(): Comparator<WorkspaceAgentModel> {
816816
return Comparator { a, b ->
817-
if (a === b) 0
818-
if (a == null) -1
819-
if (b == null) 1
820-
821817
a.name.compareTo(b.name, ignoreCase = true)
822818
}
823819
}
@@ -845,10 +841,6 @@ class CoderWorkspacesStepView(val setNextButtonEnabled: (Boolean) -> Unit) : Cod
845841

846842
override fun getComparator(): java.util.Comparator<WorkspaceAgentModel> {
847843
return Comparator { a, b ->
848-
if (a === b) 0
849-
if (a == null) -1
850-
if (b == null) 1
851-
852844
a.templateName.compareTo(b.templateName, ignoreCase = true)
853845
}
854846
}
@@ -908,10 +900,6 @@ class CoderWorkspacesStepView(val setNextButtonEnabled: (Boolean) -> Unit) : Cod
908900

909901
override fun getComparator(): java.util.Comparator<WorkspaceAgentModel> {
910902
return Comparator { a, b ->
911-
if (a === b) 0
912-
if (a == null) -1
913-
if (b == null) 1
914-
915903
a.agentStatus.label.compareTo(b.agentStatus.label, ignoreCase = true)
916904
}
917905
}

0 commit comments

Comments
 (0)