Skip to content

Commit

Permalink
Rename parameters in function body
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gr authored Aug 4, 2021
1 parent ad00e6d commit f35a517
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/filebeat/input/httpjson/internal/v2/value_tpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ func hmacString(hmacType string, hmacKey string, values ...string) string {
}
// Create a new HMAC by defining the hash type and the key (as byte array)
var mac hash.Hash
switch hmac_type {
switch hmacType {
case "sha256":
mac = hmac.New(sha256.New, []byte(hmac_key))
mac = hmac.New(sha256.New, []byte(hmacKey))
case "sha1":
mac = hmac.New(sha1.New, []byte(hmac_key))
mac = hmac.New(sha1.New, []byte(hmacKey))
default:
// Upstream config validation prevents this from happening.
return ""
Expand Down

0 comments on commit f35a517

Please sign in to comment.