Skip to content

Commit e6b44c8

Browse files
authored
Do not return anything from install()
1 parent 9dd3c7c commit e6b44c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PkgAuthentication.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,8 @@ julia> PkgAuthentication.install("my-pkg-server.example.com"; maxcount = 5)
858858
"""
859859
function install(server::AbstractString; maxcount::Integer=3)
860860
ENV[pkg_server_env_var_name] = server
861-
return install(; maxcount=maxcount)
861+
install(; maxcount=maxcount)
862+
return nothing
862863
end
863864

864865
"""
@@ -897,6 +898,7 @@ function install(; maxcount::Integer=3)
897898
# old Julia versions don't support auth hooks, so let's authenticate now and be done with it
898899
authenticate(server)
899900
end
901+
return nothing
900902
end
901903

902904
function generate_auth_handler(maxcount::Integer)

0 commit comments

Comments
 (0)