src/adapter/AxiosRequestConfigAdapter.ts
Function method
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get method(): HTTP_METHOD {
if (isEmpty(this._prop.method)) {
return HTTP_METHOD.GET;
}
const method = this._prop.method.toUpperCase();
Avoid too many return
statements within this function. Open
Open
return HTTP_METHOD.DELETE;
Avoid too many return
statements within this function. Open
Open
return HTTP_METHOD.PATCH;
Avoid too many return
statements within this function. Open
Open
return HTTP_METHOD.GET;
Avoid too many return
statements within this function. Open
Open
return HTTP_METHOD.HEAD;
Avoid too many return
statements within this function. Open
Open
return HTTP_METHOD.OPTIONS;