From 4d59921aeeb37679a2931cdeb196d243f1e015f6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 2 Apr 2018 22:52:27 +0100 Subject: [PATCH] Follow naming convention for Lua --- second-pass.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/second-pass.lua b/second-pass.lua index ead68c2..ccd6120 100644 --- a/second-pass.lua +++ b/second-pass.lua @@ -1,4 +1,4 @@ -function file_exists(name) +function fileExists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end @@ -13,7 +13,7 @@ end return { { Meta = function(meta) - if file_exists("output.pdf") then + if fileExists("output.pdf") then meta["wordcount"] = countWords() meta["secondpass"] = true end