Skip to content

Commit 99503d0

Browse files
author
David Hasani
committed
fix detekt
1 parent ce644d8 commit 99503d0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/utils/CodeTransformApiUtils.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,11 @@ fun findDownloadArtifactProgressUpdate(transformationSteps: List<TransformationS
286286
}
287287

288288
// "name" holds the ID of the corresponding plan step (where table will go) and "description" holds the plan data
289-
fun getTableMapping(stepZeroProgressUpdates: List<TransformationProgressUpdate>): Map<String, List<String>> {
290-
return stepZeroProgressUpdates.groupBy(
289+
fun getTableMapping(stepZeroProgressUpdates: List<TransformationProgressUpdate>): Map<String, List<String>> =
290+
stepZeroProgressUpdates.groupBy(
291291
{ it.name() },
292292
{ it.description() }
293293
)
294-
}
295294

296295
// ID of '0' reserved for job statistics table; only 1 table there
297296
fun parseTableMapping(tableMapping: Map<String, List<String>>): PlanTable {

plugins/amazonq/codetransform/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codemodernizer/CodeWhispererCodeModernizerUtilsTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ class CodeWhispererCodeModernizerUtilsTest : CodeWhispererCodeModernizerTestBase
237237
val table1Json = """
238238
{"name":"Dependency changes", "columnNames":["dependencyName","action","currentVersion","targetVersion"],
239239
"rows":[{"dependencyName":"org.springframework.boot","action":"Update","currentVersion":"2.1","targetVersion":"2.4"}]}
240-
""".trimIndent()
240+
""".trimIndent()
241241
val table2Json = """
242242
{"name":"Dependency changes", "columnNames":["dependencyName","action","currentVersion","targetVersion"],
243243
"rows":[{"dependencyName":"junit","action":"Add","currentVersion":"","targetVersion":"4.13"}]}
244-
""".trimIndent()
244+
""".trimIndent()
245245
val tables = listOf(
246246
MAPPER.readValue<PlanTable>(table1Json),
247247
MAPPER.readValue<PlanTable>(table2Json)

0 commit comments

Comments
 (0)