go lint and vet

This commit is contained in:
Matt Drollette
2017-10-15 14:14:50 -05:00
parent 529c4a084f
commit 2b56d44114
13 changed files with 164 additions and 214 deletions

View File

@@ -25,7 +25,7 @@ func NewSu3VerifyCommand() cli.Command {
}
func su3VerifyAction(c *cli.Context) {
su3File := su3.Su3File{}
su3File := su3.New()
data, err := ioutil.ReadFile(c.Args().Get(0))
if nil != err {
@@ -39,7 +39,7 @@ func su3VerifyAction(c *cli.Context) {
// get the reseeder key
ks := reseed.KeyStore{Path: "./certificates"}
cert, err := ks.ReseederCertificate(su3File.SignerId)
cert, err := ks.ReseederCertificate(su3File.SignerID)
if nil != err {
fmt.Println(err)
return
@@ -49,7 +49,7 @@ func su3VerifyAction(c *cli.Context) {
panic(err)
}
fmt.Printf("Signature is valid for signer '%s'\n", su3File.SignerId)
fmt.Printf("Signature is valid for signer '%s'\n", su3File.SignerID)
if c.Bool("extract") {
// @todo: don't assume zip