diff options
author | mpeterv <mpeterval@gmail.com> | 2016-04-17 15:58:26 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-04-17 15:58:26 +0300 |
commit | a5ff5b514ec0a0878b24d51a9db3db385e789d71 (patch) | |
tree | 9c42f88d1df84be3a51cc74cb6ee45e82daba9fd /src/luacov/reporter.lua | |
parent | 31b109afa3e20761662c5ccc8f777e4b04e088ab (diff) | |
download | luacov-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.lua | 4 |
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 .. "." |