Skip to content

Commit 61adf9a

Browse files
committed
refactor(@angular-devkit/build-angular): remove useless variable rename
1 parent 0003adf commit 61adf9a

File tree

1 file changed

+15
-7
lines changed
  • packages/angular_devkit/build_angular/src/tslint

1 file changed

+15
-7
lines changed

packages/angular_devkit/build_angular/src/tslint/index2.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ async function _loadTslint() {
3737
}
3838

3939

40-
async function _run(config: TslintBuilderOptions, context: BuilderContext): Promise<BuilderOutput> {
40+
async function _run(
41+
options: TslintBuilderOptions,
42+
context: BuilderContext,
43+
): Promise<BuilderOutput> {
4144
const systemRoot = context.workspaceRoot;
4245
process.chdir(context.currentDirectory);
43-
const options = config;
44-
const projectName = context.target && context.target.project || '<???>';
46+
const projectName = (context.target && context.target.project) || '<???>';
4547

4648
// Print formatter output only for non human-readable formats.
47-
const printInfo = ['prose', 'verbose', 'stylish'].includes(options.format || '')
48-
&& !options.silent;
49+
const printInfo =
50+
['prose', 'verbose', 'stylish'].includes(options.format || '') && !options.silent;
4951

5052
context.reportStatus(`Linting ${JSON.stringify(projectName)}...`);
5153
if (printInfo) {
@@ -72,8 +74,14 @@ async function _run(config: TslintBuilderOptions, context: BuilderContext): Prom
7274

7375
let i = 0;
7476
for (const program of allPrograms) {
75-
const partial
76-
= await _lint(projectTslint, systemRoot, tslintConfigPath, options, program, allPrograms);
77+
const partial = await _lint(
78+
projectTslint,
79+
systemRoot,
80+
tslintConfigPath,
81+
options,
82+
program,
83+
allPrograms,
84+
);
7785
if (result === undefined) {
7886
result = partial;
7987
} else {

0 commit comments

Comments
 (0)