Skip to content

Commit

Permalink
Remove redundant byte parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Sep 12, 2024
1 parent 1da286c commit c383ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/pkg/imagebuilder/imagebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *imageBuilder) getHashedModelDependenciesUrl(ctx context.Context, versio
}

hash := sha256.New()
hash.Write([]byte(condaEnv))
hash.Write(condaEnv)
hashEnv := hash.Sum(nil)

hashedDependenciesUrl := fmt.Sprintf("%s://%s%s/%x", c.artifactService.GetURLScheme(), artifactURL.Bucket, modelDependenciesPath, hashEnv)
Expand Down

0 comments on commit c383ac1

Please sign in to comment.