From ca33a035c779ae14fb6330c8801c75f49dd1bb79 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sat, 7 Jan 2023 13:31:23 -0500 Subject: Add an internal caching option. It performs quite well. Also refactor and clean up most linter warnings. --- page/checkup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'page/checkup.go') diff --git a/page/checkup.go b/page/checkup.go index b3b71fc..c6ca447 100644 --- a/page/checkup.go +++ b/page/checkup.go @@ -21,7 +21,7 @@ func (p *Page) Checkup() (map[string]PageList, error) { return err } - if !info.IsDir() && strings.HasSuffix(info.Name(), Suffix) { + if !info.IsDir() && strings.HasSuffix(info.Name(), Suffix) { //nolint:nestif p2 := NewPage(strings.ReplaceAll(path, Suffix, "")) err = p2.Read() -- cgit v1.2.3