зеркало из https://github.com/Azure/ms-rest-js.git
Fix linter errors
This commit is contained in:
Родитель
f88b06c853
Коммит
bd56bbea31
|
@ -23,6 +23,7 @@ export function responseToBody(httpOperationResponseMethod: Function, ...args: a
|
||||||
const callback = args[args.length - 1];
|
const callback = args[args.length - 1];
|
||||||
if (typeof callback === "function") {
|
if (typeof callback === "function") {
|
||||||
httpOperationResponseMethod(...args.slice(0, args.length - 1))
|
httpOperationResponseMethod(...args.slice(0, args.length - 1))
|
||||||
|
// tslint:disable-next-line:no-null-keyword
|
||||||
.then((res: HttpOperationResponse) => callback(null, res.parsedBody, res.request, res))
|
.then((res: HttpOperationResponse) => callback(null, res.parsedBody, res.request, res))
|
||||||
.catch((err: any) => callback(err));
|
.catch((err: any) => callback(err));
|
||||||
} else {
|
} else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче