From 27aedbca916d9aa38d80fca6a88e2ef4f7703191 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 9 Dec 2019 12:28:07 +1100 Subject: [PATCH] [WIP] Linting --- cli/js/bundler.ts | 5 +---- cli/ops/compiler.rs | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cli/js/bundler.ts b/cli/js/bundler.ts index 02b540f7c4dcc1..2e452e1482d32e 100644 --- a/cli/js/bundler.ts +++ b/cli/js/bundler.ts @@ -43,10 +43,7 @@ export function buildBundle( } /** Set the rootExports which will by the `emitBundle()` */ -export function setRootExports( - program: ts.Program, - rootModule: string -): void { +export function setRootExports(program: ts.Program, rootModule: string): void { // get a reference to the type checker, this will let us find symbols from // the AST. const checker = program.getTypeChecker(); diff --git a/cli/ops/compiler.rs b/cli/ops/compiler.rs index d4d8e2e28f3409..bd93d5a9ab31f8 100644 --- a/cli/ops/compiler.rs +++ b/cli/ops/compiler.rs @@ -83,8 +83,8 @@ fn op_resolve_modules( let mut specifiers = vec![]; for specifier in &args.specifiers { - let resolved_specifier = state - .resolve(specifier, &referrer, is_main, is_dyn_import); + let resolved_specifier = + state.resolve(specifier, &referrer, is_main, is_dyn_import); match resolved_specifier { Ok(ms) => specifiers.push(ms.as_str().to_owned()), Err(err) => return Err(err),