Skip to content

Commit

Permalink
Merge fedb3f2 into 7c07ba1
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer authored Aug 15, 2019
2 parents 7c07ba1 + fedb3f2 commit bc97083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repositories/contents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ content_uri(repo, path) = "/repos/$(name(repo))/contents/$(name(path))"
function build_content_response(json::Dict)
results = Dict()
haskey(json, "commit") && setindex!(results, Commit(json["commit"]), "commit")
haskey(json, "content") && setindex!(results, Content(json["content"]), "content")
haskey(json, "content") && setindex!(results, isnothing(json["content"]) ? nothing : Content(json["content"]), "content")
return results
end

0 comments on commit bc97083

Please sign in to comment.