Skip to content

Commit 308b337

Browse files
maennchensschuberth
authored andcommitted
refactor(gleam): Remove redundant vcsProcessed assignments
The Package data class already normalizes the VCS info by default, so explicitly setting vcsProcessed to vcs.normalize() or VcsInfo.EMPTY is unnecessary. Signed-off-by: Jonatan Männchen <jonatan@maennchen.ch>
1 parent 681179a commit 308b337

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

plugins/package-managers/gleam/src/main/kotlin/ManifestPackageInfo.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ internal data class ManifestPackageInfo(private val pkg: GleamManifest.Package)
9090
)
9191
} ?: RemoteArtifact.EMPTY,
9292
vcs = vcs,
93-
vcsProcessed = vcs.normalize(),
9493
sourceCodeOrigins = listOf(SourceCodeOrigin.ARTIFACT, SourceCodeOrigin.VCS)
9594
)
9695
}
@@ -110,7 +109,6 @@ internal data class ManifestPackageInfo(private val pkg: GleamManifest.Package)
110109
binaryArtifact = RemoteArtifact.EMPTY,
111110
sourceArtifact = RemoteArtifact.EMPTY,
112111
vcs = vcs,
113-
vcsProcessed = vcs.normalize(),
114112
sourceCodeOrigins = listOf(SourceCodeOrigin.VCS)
115113
)
116114
}
@@ -128,7 +126,6 @@ internal data class ManifestPackageInfo(private val pkg: GleamManifest.Package)
128126
binaryArtifact = RemoteArtifact.EMPTY,
129127
sourceArtifact = RemoteArtifact.EMPTY,
130128
vcs = VcsInfo.EMPTY,
131-
vcsProcessed = VcsInfo.EMPTY,
132129
sourceCodeOrigins = listOf(SourceCodeOrigin.VCS)
133130
)
134131

0 commit comments

Comments
 (0)