From 3dd1bac821852bc01f8a250e64b7dff5b89c57f6 Mon Sep 17 00:00:00 2001
From: mdbraber <m@mdbraber.com>
Date: Wed, 5 Jun 2019 22:07:34 +0200
Subject: [PATCH] Fix comments

---
 server/handlers.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/server/handlers.go b/server/handlers.go
index ef835da6..573542c0 100644
--- a/server/handlers.go
+++ b/server/handlers.go
@@ -1096,10 +1096,9 @@ func (s *Server) verify(token string) ([]byte, error) {
 		return nil, fmt.Errorf("unable to parse signed message")
 	}
 
-	// Parse the message to check expiry, as it jose doesn't distinguish expiry error from others
 	parts := strings.Split(token, ".")
 	if len(parts) != 3 {
-		return nil, fmt.Errorf("square/go-jose: compact JWS format must have three parts")
+		return nil, fmt.Errorf("compact JWS format must have three parts")
 	}
 
 	payload, err := base64.RawURLEncoding.DecodeString(parts[1])
-- 
GitLab