Fix linter

This commit is contained in:
Fabio Berger
2018-07-13 19:53:49 +02:00
parent 80071beaac
commit 2f0a914838

View File

@@ -7,7 +7,9 @@ export const fetchAsync = async (
timeoutMs: number = 20000,
): Promise<Response> => {
if (options.signal || (options as any).timeout) {
throw new Error('Cannot call fetchAsync with options.signal or options.timeout. To set a timeout, please use the supplied "timeoutMs" parameter.');
throw new Error(
'Cannot call fetchAsync with options.signal or options.timeout. To set a timeout, please use the supplied "timeoutMs" parameter.',
);
}
let optionsWithAbortParam;
if (!isNode) {