From c1a518ef8e8ced9a679525747dbe029fad415e52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Wed, 3 Jun 2020 13:43:54 +0200 Subject: [PATCH] Un-export AuthFlow --- internal/config/config_setup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/config_setup.go b/internal/config/config_setup.go index 5bb5f694f..7217eb3d9 100644 --- a/internal/config/config_setup.go +++ b/internal/config/config_setup.go @@ -26,7 +26,7 @@ func IsGitHubApp(id string) bool { } func AuthFlowWithConfig(cfg Config, hostname, notice string) (string, error) { - token, userLogin, err := AuthFlow(hostname, notice) + token, userLogin, err := authFlow(hostname, notice) if err != nil { return "", err } @@ -49,7 +49,7 @@ func AuthFlowWithConfig(cfg Config, hostname, notice string) (string, error) { return token, nil } -func AuthFlow(oauthHost, notice string) (string, string, error) { +func authFlow(oauthHost, notice string) (string, string, error) { var verboseStream io.Writer if strings.Contains(os.Getenv("DEBUG"), "oauth") { verboseStream = os.Stderr