Skip to content

Commit

Permalink
Pip: Simplify the authors and declaredLicenses variable definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Apr 11, 2022
1 parent 737316d commit bb717a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzer/src/main/kotlin/managers/Pip.kt
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ class Pip(
// Get the locally available metadata for all installed packages as a fallback.
val installedPackages = getInstalledPackagesWithLocalMetaData(virtualEnvDir, workingDir).associateBy { it.id }

var authors: SortedSet<String> = sortedSetOf()
var declaredLicenses: SortedSet<String> = sortedSetOf()
val authors = sortedSetOf<String>()
val declaredLicenses = sortedSetOf<String>()

// First try to get metadata from "setup.py" in any case, even for "requirements.txt" projects.
val (setupName, setupVersion, setupHomepage) = if (workingDir.resolve("setup.py").isFile) {
Expand Down

0 comments on commit bb717a1

Please sign in to comment.