Skip to content

Commit

Permalink
Update internal/hashio/files.go
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Plischke <[email protected]>
  • Loading branch information
tianfeng92 and alexplischke authored Nov 8, 2024
1 parent c84ed21 commit 80b32f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/hashio/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func SHA256(filename string) (string, error) {

// HashContent computes a SHA-256 hash of the file content combined with extra content,
// and returns the first 16 characters of the hex-encoded hash.
func HashContent(filePath string, extraContent ...string) (string, error) {
func HashContent(filename string, extra ...string) (string, error) {
file, err := os.Open(filePath)
if err != nil {
return "", fmt.Errorf("failed to open file: %w", err)
Expand Down

0 comments on commit 80b32f7

Please sign in to comment.