summaryrefslogtreecommitdiff
path: root/src/luacov/reporter.lua
diff options
context:
space:
mode:
authormpeterv <mpeterval@gmail.com>2016-04-17 15:58:26 +0300
committermpeterv <mpeterval@gmail.com>2016-04-17 15:58:26 +0300
commita5ff5b514ec0a0878b24d51a9db3db385e789d71 (patch)
tree9c42f88d1df84be3a51cc74cb6ee45e82daba9fd /src/luacov/reporter.lua
parent31b109afa3e20761662c5ccc8f777e4b04e088ab (diff)
downloadluacov-a5ff5b514ec0a0878b24d51a9db3db385e789d71.tar.gz
Change luacov.stats to take statsfile path as argument
Diffstat (limited to 'src/luacov/reporter.lua')
-rw-r--r--src/luacov/reporter.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/luacov/reporter.lua b/src/luacov/reporter.lua
index e5c8a83..5236d4f 100644
--- a/src/luacov/reporter.lua
+++ b/src/luacov/reporter.lua
@@ -335,9 +335,7 @@ ReporterBase.__index = ReporterBase
function ReporterBase:new(conf)
local stats = require("luacov.stats")
-
- stats.statsfile = conf.statsfile
- local data = stats.load()
+ local data = stats.load(conf.statsfile)
if not data then
return nil, "Could not load stats file " .. conf.statsfile .. "."