Skip to content

Commit 105a4c8

Browse files
committed
Remove unused expressions
1 parent 7e4b531 commit 105a4c8

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
@@ -813,10 +813,6 @@ class CoderWorkspacesStepView(val setNextButtonEnabled: (Boolean) -> Unit) : Cod
813813

814814
override fun getComparator(): Comparator<WorkspaceAgentModel> {
815815
return Comparator { a, b ->
816-
if (a === b) 0
817-
if (a == null) -1
818-
if (b == null) 1
819-
820816
a.name.compareTo(b.name, ignoreCase = true)
821817
}
822818
}
@@ -844,10 +840,6 @@ class CoderWorkspacesStepView(val setNextButtonEnabled: (Boolean) -> Unit) : Cod
844840

845841
override fun getComparator(): java.util.Comparator<WorkspaceAgentModel> {
846842
return Comparator { a, b ->
847-
if (a === b) 0
848-
if (a == null) -1
849-
if (b == null) 1
850-
851843
a.templateName.compareTo(b.templateName, ignoreCase = true)
852844
}
853845
}
@@ -907,10 +899,6 @@ class CoderWorkspacesStepView(val setNextButtonEnabled: (Boolean) -> Unit) : Cod
907899

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

0 commit comments

Comments
 (0)