From 55ae48facad56f2cc5ee26c9bbfbfa02ac463d15 Mon Sep 17 00:00:00 2001 From: Roland Shoemaker Date: Tue, 24 Nov 2015 17:45:57 -0800 Subject: [PATCH] Review fixes --- publisher/publisher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publisher/publisher.go b/publisher/publisher.go index 431508853..08eb42109 100644 --- a/publisher/publisher.go +++ b/publisher/publisher.go @@ -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)