diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-09-24 01:44:53 +0200 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-09-24 01:44:53 +0200 |
| commit | afda15260f4f97ec00b3e7fdf63bd13013daae40 (patch) | |
| tree | 8f7869ddb0fb48f096648d3765f0c25561606b10 /packages/megalodon/src/cancel.ts | |
| parent | upd: add new endpoints to Masto API (diff) | |
| download | sharkey-afda15260f4f97ec00b3e7fdf63bd13013daae40.tar.gz sharkey-afda15260f4f97ec00b3e7fdf63bd13013daae40.tar.bz2 sharkey-afda15260f4f97ec00b3e7fdf63bd13013daae40.zip | |
upd: megalodon to v7
Diffstat (limited to 'packages/megalodon/src/cancel.ts')
| -rw-r--r-- | packages/megalodon/src/cancel.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/megalodon/src/cancel.ts b/packages/megalodon/src/cancel.ts index f8e4729b8e..3b905a492e 100644 --- a/packages/megalodon/src/cancel.ts +++ b/packages/megalodon/src/cancel.ts @@ -1,13 +1,13 @@ export class RequestCanceledError extends Error { - public isCancel: boolean; + public isCancel: boolean - constructor(msg: string) { - super(msg); - this.isCancel = true; - Object.setPrototypeOf(this, RequestCanceledError); - } + constructor(msg: string) { + super(msg) + this.isCancel = true + Object.setPrototypeOf(this, RequestCanceledError) + } } export const isCancel = (value: any): boolean => { - return value && value.isCancel; -}; + return value && value.isCancel +} |