Skip to content

Commit 19a315a

Browse files
committed
refactor
1 parent 42aa641 commit 19a315a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/customization/CodeWhispererCustomizationDialog.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ class CodeWhispererCustomizationDialog(
192192
val activeProfile = QRegionProfileManager.getInstance().activeProfile(project)
193193
// Group customizations by profile name (active profile first, then alphabetical), with the active customization on top
194194
val sorted = unsorted.sortedWith(
195-
compareBy<CustomizationUiItem> { it.customization.profile?.profileName != activeProfile?.profileName }
196-
.thenBy { it.customization.profile?.profileName.orEmpty() }
197-
.thenBy { it.customization.name }
198-
)
195+
compareBy<CustomizationUiItem> { it.customization.profile?.profileName != activeProfile?.profileName }
196+
.thenBy { it.customization.profile?.profileName.orEmpty() }
197+
.thenBy { it.customization.name }
198+
)
199199
.let { list -> activeCustomization?.let { list.putPickedUpFront(setOf(it)) } ?: list }
200200

201201
if (

0 commit comments

Comments
 (0)