This commit is contained in:
sylor_huang@126.com
2020-06-30 11:47:26 +08:00
parent 45cca12ca1
commit 9ef7495db6
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ class Gitea::Repository::Entries::ListService < Gitea::ClientService
body = JSON.parse(response.body)
case response.status
when 200
body.merge!({"status": 1})
body
else
{'status': -1, 'message': "#{body['message']}"}
end