Skip to content

Commit a791cbc

Browse files
committed
be less string about github token length
1 parent 2a0333a commit a791cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen_resources/generator/github.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const _github_auth = Ref{GitHub.Authorization}()
1010
function github_auth(;allow_anonymous::Bool=true)
1111
if !isassigned(_github_auth) || !allow_anonymous && isa(_github_auth[], GitHub.AnonymousAuth)
1212
# If the user is feeding us a GITHUB_TOKEN token, use it!
13-
if length(get(ENV, "GITHUB_TOKEN", "")) == 40
13+
if length(get(ENV, "GITHUB_TOKEN", "")) >= 40
1414
_github_auth[] = GitHub.authenticate(ENV["GITHUB_TOKEN"])
1515
else
1616
if allow_anonymous

0 commit comments

Comments
 (0)