Skip to content

Commit

Permalink
refactor(conan): Extract the variable hashValue
Browse files Browse the repository at this point in the history
Prepare for an upcoming change.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau authored and sschuberth committed Jul 18, 2024
1 parent efed39f commit af02a8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/package-managers/conan/src/main/kotlin/Conan.kt
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ class Conan(
(urlNode.takeIf { it.isTextual } ?: urlNode.first()).textValueOrEmpty()
}

val hash = Hash.create(artifactEntry["sha256"].textValueOrEmpty(), HashAlgorithm.SHA256.name)
val hashValue = artifactEntry["sha256"].textValueOrEmpty()
val hash = Hash.create(hashValue, HashAlgorithm.SHA256.name)

RemoteArtifact(url, hash)
}.getOrElse {
Expand Down

0 comments on commit af02a8c

Please sign in to comment.