
if @result_object.has_key?("NumFiles")
  json.partial! "api/v1/projects/simple_gitea_diff_detail", diff: @result_object
else 
  json.partial! "api/v1/projects/simple_gitea_diff_file_detail", file: @result_object
end