aboutsummaryrefslogtreecommitdiffhomepage
path: root/navigation/pagemenus.go
diff options
context:
space:
mode:
Diffstat (limited to 'navigation/pagemenus.go')
-rw-r--r--navigation/pagemenus.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/navigation/pagemenus.go b/navigation/pagemenus.go
index ab57231c3..3ff49cf81 100644
--- a/navigation/pagemenus.go
+++ b/navigation/pagemenus.go
@@ -78,7 +78,7 @@ func PageMenusFromPage(p Page) (PageMenus, error) {
return pm, nil
}
- var wrapErr = func(err error) error {
+ wrapErr := func(err error) error {
return fmt.Errorf("unable to process menus for page %q: %w", p.Path(), err)
}
@@ -109,7 +109,8 @@ func PageMenusFromPage(p Page) (PageMenus, error) {
func NewMenuQueryProvider(
pagem PageMenusGetter,
sitem MenusGetter,
- p Page) MenuQueryProvider {
+ p Page,
+) MenuQueryProvider {
return &pageMenus{
p: p,
pagem: pagem,