[Why] the tmpfile will be deleted automatically with the object reclaimed by GC
Signed-off-by: Lu Weitao luweitaobe@163.com --- lib/stats_wrapper.rb | 2 -- 1 file changed, 2 deletions(-)
diff --git a/lib/stats_wrapper.rb b/lib/stats_wrapper.rb index 8a6d6a9..d4ac6e2 100644 --- a/lib/stats_wrapper.rb +++ b/lib/stats_wrapper.rb @@ -227,8 +227,6 @@ module StatsWrapper return nil end
- File.delete(file) - true end