Review fixes

This commit is contained in:
Roland Shoemaker 2015-11-24 17:45:57 -08:00
parent 2d9dbd0cfb
commit 55ae48faca
1 changed files with 2 additions and 2 deletions

View File

@ -31,11 +31,11 @@ type LogDescription struct {
PublicKey string `json:"key"`
}
// NewLog returns a initinalized Log struct
// NewLog returns a initialized Log struct
func NewLog(uri, b64PK string) (*Log, error) {
var l Log
var err error
if strings.HasPrefix(uri, "/") {
if strings.HasSuffix(uri, "/") {
uri = uri[0 : len(uri)-2]
}
l.Client = ctClient.New(uri)