mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-02 05:12:35 +00:00
LoadTemplates: remove excessive return value
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
var reMacroDirective = regexp.MustCompile(
|
||||
`(?s)<!--\s*Macro:\s*([^\n]+)\n\s*Template:\s*(\S+)\n(.*?)-->`,
|
||||
`(?s)<!--\s*Macro:\s*([^\n]+)\n\s*Template:\s*(\S+)(.*?)-->`,
|
||||
)
|
||||
|
||||
type Macro struct {
|
||||
@@ -111,7 +111,7 @@ func LoadMacros(
|
||||
macro Macro
|
||||
)
|
||||
|
||||
_, macro.Template, err = includes.LoadTemplate(path, templates)
|
||||
macro.Template, err = includes.LoadTemplate(path, templates)
|
||||
|
||||
if err != nil {
|
||||
err = karma.Format(err, "unable to load template")
|
||||
|
||||
Reference in New Issue
Block a user