Skip to content

Commit 5818509

Browse files
committed
Fixed warnings
1 parent e575246 commit 5818509

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

src/luacov/defaults.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ return {
1717
-- using `luacov.tick` module. Default: false.
1818
tick = false,
1919

20-
--- Include all files including untested ones in the report
20+
--- Include all files including untested ones in the report
2121
includeuntested = false,
2222

2323
--- Stats file updating frequency for `luacov.tick`.

src/luacov/reporter.lua

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function ReporterBase:new(conf)
3535
local filtered_data = {}
3636
local max_hits = 0
3737

38-
3938
-- Several original paths can map to one real path,
4039
-- their stats should be merged in this case.
4140
for filename, file_stats in pairs(data) do
@@ -55,24 +54,20 @@ function ReporterBase:new(conf)
5554
end
5655
end
5756

58-
59-
-- Add untested files to the files table
57+
-- Add untested files to the files table
6058
if conf.includeuntested then
61-
6259
for entry in lfs.dir(lfs.currentdir()) do
63-
6460
if string.find(entry,"%.lua$") then
65-
if luacov.file_included(entry) then
66-
realname = luacov.real_name(entry)
67-
61+
if luacov.file_included(entry) then
62+
local realname = luacov.real_name(entry)
6863

69-
if not filtered_data[realname] then
64+
if not filtered_data[realname] then
7065
table.insert(files,realname)
7166
filtered_data[realname] = {0}
72-
end
67+
end
7368
end
7469
end
75-
end
70+
end
7671
end
7772

7873
table.sort(files)

0 commit comments

Comments
 (0)