Skip to content

Commit 647b3bb

Browse files
committed
style(python): Align on adding single map entries as a pair
Not constructing a temporary map but just a pair is slightly shorter. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 90da9a5 commit 647b3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/package-managers/python/src/main/kotlin/utils/PythonUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ internal fun processDeclaredLicenses(id: Identifier, declaredLicenses: Set<Strin
6565
logger.debug { "Mapping '$GENERIC_BSD_LICENSE' to '$license' for '${id.toCoordinates()}'." }
6666

6767
declaredLicensesProcessed = declaredLicensesProcessed.copy(
68-
mapped = declaredLicensesProcessed.mapped + mapOf(GENERIC_BSD_LICENSE to license),
68+
mapped = declaredLicensesProcessed.mapped + (GENERIC_BSD_LICENSE to license),
6969
unmapped = declaredLicensesProcessed.unmapped - GENERIC_BSD_LICENSE
7070
)
7171
}

0 commit comments

Comments
 (0)