From 580ad79a22b818c45b1859d6f636e94c521f7548 Mon Sep 17 00:00:00 2001 From: empathetic-alligator Date: Tue, 16 Dec 2014 21:18:10 -0500 Subject: [PATCH] Fixed issues found by golint. --- server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.go b/server.go index 7951fa3..2ef62b8 100644 --- a/server.go +++ b/server.go @@ -268,13 +268,13 @@ func (s *Server) Op(fingerprint string) { // Whitelist adds the given fingerprint to the whitelist func (s *Server) Whitelist(fingerprint string) error { if strings.HasPrefix(fingerprint, "github.com/") { - return s.whitelistIdentityUrl(fingerprint) - } else { - return s.whitelistFingerprint(fingerprint) + return s.whitelistIdentityURL(fingerprint) } + + return s.whitelistFingerprint(fingerprint) } -func (s *Server) whitelistIdentityUrl(user string) error { +func (s *Server) whitelistIdentityURL(user string) error { logger.Infof("Adding github account %s to whitelist", user) user = strings.Replace(user, "github.com/", "", -1)