diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 22:34:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 23:14:09 +0100 |
commit | a795acbcd8b18aa4af384d5c03f30740361c8fcf (patch) | |
tree | 0dbf7b000681a738b892c5235daf52c63cda88b9 /navigation | |
parent | 982d9513e71b3d48e20cfa38454a0e1215a8d963 (diff) | |
download | hugo-a795acbcd8b18aa4af384d5c03f30740361c8fcf.tar.gz hugo-a795acbcd8b18aa4af384d5c03f30740361c8fcf.zip |
all: Run gofumpt -l -w .
Diffstat (limited to 'navigation')
-rw-r--r-- | navigation/pagemenus.go | 5 |
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, |