Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b8000d

Browse files
committed
Fix gh url var name
1 parent ed1862e commit 2b8000d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/externalauth/externalauth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,9 +968,9 @@ func (r roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
968968
// IsGithubDotComURL returns true if the given URL is a github.com URL.
969969
func IsGithubDotComURL(str string) bool {
970970
str = strings.ToLower(str)
971-
ghUrl, err := url.Parse(str)
971+
ghURL, err := url.Parse(str)
972972
if err != nil {
973973
return false
974974
}
975-
return ghUrl.Host == "github.com"
975+
return ghURL.Host == "github.com"
976976
}

0 commit comments

Comments
 (0)