Skip to content

Commit 1c70833

Browse files
committed
removed redundant index variable
1 parent f915b67 commit 1c70833

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/LineCount.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ static async Task<ReportResult> CountInFiles(string path, LineCountData data, Pa
209209
return new UndiagnosedError(exception);
210210
}
211211

212-
int rootLineCount = 0;
212+
int lineCount = 0;
213213
int fileCount = 0;
214-
int index = 0;
215214

216215
await foreach (var result in Task.WhenEach(filetasks))
217216
{
@@ -233,17 +232,15 @@ static async Task<ReportResult> CountInFiles(string path, LineCountData data, Pa
233232
Logger.Log(file, lines.ToString(CultureInfo.InvariantCulture));
234233
}
235234

236-
rootLineCount += lines;
235+
lineCount += lines;
237236

238237
if(lines > 0)
239238
{
240239
fileCount++;
241240
}
242-
243-
index++;
244241
}
245242

246-
return new LineCountReport(rootLineCount, fileCount);
243+
return new LineCountReport(lineCount, fileCount);
247244
}
248245

249246
static IEnumerable<string> GetFilterFilePaths(string path, LineCountData data)

0 commit comments

Comments
 (0)