mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-16 23:18:56 +08:00
change entries error
This commit is contained in:
@@ -24,12 +24,11 @@ class Gitea::Repository::Entries::ListService < Gitea::ClientService
|
||||
end
|
||||
|
||||
def render_result(response)
|
||||
body = JSON.parse(response.body)
|
||||
case response.status
|
||||
when 200
|
||||
body
|
||||
JSON.parse(response.body).merge({"status": 1})
|
||||
else
|
||||
{status: -1, message: "#{body['message']}"}
|
||||
{'status': -1, 'message': "#{body['message']}"}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user