Skip to content

Commit d164be3

Browse files
Apply suggestions from code review
Co-authored-by: Dilum Aluthge <[email protected]>
1 parent 3fc569e commit d164be3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/check_orgs/check_orgs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ function check_orgs()
1919
for org_match in orgs
2020
org = split(org_match.captures[1], "https://github.com/", keepempty=false)[1]
2121
org = split(org, "http://github.com/", keepempty=false)[1]
22-
members = -1
22+
members = nothing
2323
try
2424
members, page_data = GitHub.members(Owner(org), auth=myauth, public_only=true)
2525
catch e
2626
err_msg = sprint(showerror, e)
2727
println("Error processing organization '$org':\n$err_msg")
2828
end
29-
if length(members) < 2
29+
if isnothing(members) || length(members) < 2
3030
println(" - $org $(length(members)) members")
3131
num_below += 1
3232
end

0 commit comments

Comments
 (0)