diff options
author | ShinDarth <borzifrancesco@gmail.com> | 2018-09-02 00:49:47 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-09-01 21:59:52 -0400 |
commit | bbc4e55bdae2d37fee92e778f4a13eaf1d4fb4e1 (patch) | |
tree | 4b02289cd48406709fc2445152ebc4904c609f9a /js/compiler.ts | |
parent | 2eb80f3617e44f9be2bd8ac15762824924bdfa08 (diff) |
Minor code refactoring
Diffstat (limited to 'js/compiler.ts')
-rw-r--r-- | js/compiler.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/compiler.ts b/js/compiler.ts index e75bc48d8..883feb2f9 100644 --- a/js/compiler.ts +++ b/js/compiler.ts @@ -283,7 +283,7 @@ export class DenoCompiler implements ts.LanguageServiceHost { * emit of a dynamic ES `import()` from TypeScript. */ private _makeLocalRequire(moduleMetaData: ModuleMetaData): AMDRequire { - const localRequire = ( + return ( deps: ModuleSpecifier[], callback: AmdCallback, errback: AmdErrback @@ -304,7 +304,6 @@ export class DenoCompiler implements ts.LanguageServiceHost { errback(e); } }; - return localRequire; } /** @@ -431,7 +430,7 @@ export class DenoCompiler implements ts.LanguageServiceHost { */ makeDefine(moduleMetaData: ModuleMetaData): AmdDefine { // TODO should this really be part of the public API of the compiler? - const localDefine: AmdDefine = ( + return ( deps: ModuleSpecifier[], factory: AmdFactory ): void => { @@ -457,7 +456,6 @@ export class DenoCompiler implements ts.LanguageServiceHost { this._runQueue.push(moduleMetaData); } }; - return localDefine; } /** |