Add vet linter (#240)

This commit is contained in:
Erik Johnston 2017-09-20 13:40:22 +01:00 committed by Mark Haines
parent 4d05492f43
commit b72142ace5
9 changed files with 38 additions and 29 deletions

View file

@ -413,7 +413,7 @@ func fingerprintPEM(data []byte) *gomatrixserverlib.TLSFingerprint {
}
if certDERBlock.Type == "CERTIFICATE" {
digest := sha256.Sum256(certDERBlock.Bytes)
return &gomatrixserverlib.TLSFingerprint{digest[:]}
return &gomatrixserverlib.TLSFingerprint{SHA256: digest[:]}
}
}
}