Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
esilva-everbridge committed Jun 1, 2018
1 parent ce59b34 commit ab312d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pki/pki.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ func (p *Pki) DecryptSecret(cipherText string) (plainText string, err error) {
return cipherText, fmt.Errorf("unable to read PGP message: %s", err)
}

bytes, err := ioutil.ReadAll(md.UnverifiedBody)
body, err := ioutil.ReadAll(md.UnverifiedBody)
if err != nil {
return cipherText, fmt.Errorf("unable to read message body: %s", err)
}

return string(bytes), err
return string(body), err
}

// GetKeyByID returns a keyring by the given ID
Expand Down

0 comments on commit ab312d3

Please sign in to comment.