From 73492b7b3a7061262d2d9b7631cd696d1421ab3e Mon Sep 17 00:00:00 2001 From: blitz-1306 Date: Wed, 10 Jan 2024 22:42:23 +0500 Subject: [PATCH] Address review remarks: ignore comments parser by coverage tool, remove unnecessary Buffer reference in compile utils. --- .nycrc.json | 3 ++- src/compile/utils.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.nycrc.json b/.nycrc.json index 79af7b85..bae2453f 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -7,7 +7,8 @@ "**/coverage/**", "**/docs/**", "**/.compiler_cache/**", - "src/compile/inference/file_level_definitions_parser*.ts" + "src/compile/inference/file_level_definitions_parser*.ts", + "src/ast/comments/comments_parser*.ts" ], "reporter": ["lcov", "text-summary"], "all": true, diff --git a/src/compile/utils.ts b/src/compile/utils.ts index ceeae174..1ef02eee 100644 --- a/src/compile/utils.ts +++ b/src/compile/utils.ts @@ -281,7 +281,7 @@ export async function compileSol( const remapping = pathOptions.remapping || []; const parsedRemapping = parsePathRemapping(remapping); - const files: FileMap = new Map(); + const files: FileMap = new Map(); const resolvedFileNames = new Map(); const visited = new Set();