commit c4cf0bcbb202b7d9ac678a67676135a135e22722
parent a9b3cd02b209fcc9aa674b519fc5dbe1ab0ad2ce
Author: Hugo Soucy <hs0ucy@h50ucy.local>
Date: Thu, 4 Oct 2018 21:56:53 -0400
Remove buggy returns
Diffstat:
3 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/ferron/feed.lua b/ferron/feed.lua
@@ -14,7 +14,7 @@ function feed.makefeed(entries, destination)
local feedtemplate = Ferron.site.path .. Ferron.site.siteconfig.paths.templates .. "/feed/" .. k .. ".mustache"
if path.isfile(feedtemplate) then
- return fileutils.pushfilecontent(
+ fileutils.pushfilecontent(
destination .. "/" .. v.name .. v.extension,
templateutils.processmustache(
fileutils.pullfilecontent(feedtemplate),
@@ -23,7 +23,7 @@ function feed.makefeed(entries, destination)
)
)
else
- return print("*** Warning! The `" .. feedtemplate .. "` template is missing!")
+ print("*** Warning! The `" .. feedtemplate .. "` template is missing!")
end
end
end
diff --git a/ferron/list.lua b/ferron/list.lua
@@ -105,7 +105,7 @@ function list.makelist()
-- Build and push the HTML page
- htmldoc = fileutils.pushfilecontent(
+ fileutils.pushfilecontent(
list_htmlpath .. "/" .. fileutils.getplainname(list) .. ".html",
templateutils.processmustache(
fileutils.pullfilecontent(list_template),
@@ -113,8 +113,6 @@ function list.makelist()
list_conf_mt
)
)
-
- return
end,
{
delay = true; -- use snapshot of directory
diff --git a/ferron/page.lua b/ferron/page.lua
@@ -65,8 +65,6 @@ function page.makepage()
page_conf_mt
)
)
-
- return
end
end,
{