Skip to content

Commit

Permalink
Update pkg/sync/http/http_sync.go
Browse files Browse the repository at this point in the history
Co-authored-by: Todd Baert <[email protected]>
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT and toddbaert authored Mar 6, 2023
1 parent b6c6319 commit bb3ad84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sync/http/http_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (hs *Sync) fetchBodyFromURL(ctx context.Context, url string) ([]byte, error
}

func (hs *Sync) generateSha(body []byte) string {
hasher := sha3.New256() //nolint:gosec
hasher := sha3.New256()
hasher.Write(body)
return base64.URLEncoding.EncodeToString(hasher.Sum(nil))
}
Expand Down

0 comments on commit bb3ad84

Please sign in to comment.