We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c07ba1 commit a989cadCopy full SHA for a989cad
src/repositories/contents.jl
@@ -74,6 +74,6 @@ content_uri(repo, path) = "/repos/$(name(repo))/contents/$(name(path))"
74
function build_content_response(json::Dict)
75
results = Dict()
76
haskey(json, "commit") && setindex!(results, Commit(json["commit"]), "commit")
77
- haskey(json, "content") && setindex!(results, Content(json["content"]), "content")
+ haskey(json, "content") && setindex!(results, isnothing(json["content"]) ? nothing : Content(json["content"]), "content")
78
return results
79
end
0 commit comments