mirror of https://gitee.com/bigwinds/arangodb
Yak shave
This commit is contained in:
parent
22a8b5ec65
commit
dcc2101d09
|
@ -169,16 +169,12 @@ module.exports = exports = class SwaggerContext {
|
||||||
|
|
||||||
response(status, model, mimes, description) {
|
response(status, model, mimes, description) {
|
||||||
let statusCode = Number(status);
|
let statusCode = Number(status);
|
||||||
|
|
||||||
if (!status || Number.isNaN(statusCode)) {
|
if (!status || Number.isNaN(statusCode)) {
|
||||||
description = mimes;
|
description = mimes;
|
||||||
mimes = model;
|
mimes = model;
|
||||||
model = status;
|
model = status;
|
||||||
statusCode = 200;
|
statusCode = model === null ? 204 : 200;
|
||||||
}
|
|
||||||
|
|
||||||
if (model === null && statusCode === 200) {
|
|
||||||
this._responses.delete(200);
|
|
||||||
statusCode = 204;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in New Issue