diff options
| author | Tom Harley | 2018-03-27 21:48:09 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-03-27 21:48:09 +0100 |
| commit | 0ba694cf2a47188106326626f47b750ff750a6af (patch) | |
| tree | 19465ac00ffc4c3f0b3478f9e2a40dedeeb53976 /src/errors | |
| parent | Remove index file for ORM models (diff) | |
| download | medicine-0ba694cf2a47188106326626f47b750ff750a6af.tar.gz medicine-0ba694cf2a47188106326626f47b750ff750a6af.zip | |
Fix some minor linting errors
Diffstat (limited to 'src/errors')
| -rw-r--r-- | src/errors/errorware.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/errors/errorware.ts b/src/errors/errorware.ts index e28e6ae..05c714d 100644 --- a/src/errors/errorware.ts +++ b/src/errors/errorware.ts @@ -29,10 +29,9 @@ export class RequestError extends Error { * otherwise. */ public static is(test: Object): test is RequestError { - const err: RequestError = test as RequestError; - return err.code !== undefined - && err.name !== undefined - && err.responseBlock !== undefined; + return (test as Partial<RequestError>).code !== undefined + && (test as Partial<RequestError>).name !== undefined + && (test as Partial<RequestError>).responseBlock !== undefined; } /** |
