From 034e2cc02829c9244b32232074c7a48af827a2fb Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sun, 10 Mar 2019 04:30:38 +1100 Subject: Migrate from tslint to eslint for linting (#1905) --- js/errors.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'js/errors.ts') diff --git a/js/errors.ts b/js/errors.ts index 452b2372e..cefa4a863 100644 --- a/js/errors.ts +++ b/js/errors.ts @@ -24,14 +24,6 @@ export class DenoError extends Error { } } -// @internal -export function maybeThrowError(base: Base): void { - const err = maybeError(base); - if (err != null) { - throw err; - } -} - // @internal export function maybeError(base: Base): null | DenoError { const kind = base.errorKind(); @@ -41,3 +33,11 @@ export function maybeError(base: Base): null | DenoError { return new DenoError(kind, base.error()!); } } + +// @internal +export function maybeThrowError(base: Base): void { + const err = maybeError(base); + if (err != null) { + throw err; + } +} -- cgit v1.2.3