diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-07 13:31:23 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-01-07 13:31:23 -0500 |
| commit | ca33a035c779ae14fb6330c8801c75f49dd1bb79 (patch) | |
| tree | deaabaf15d6d91079a68f247e46070399e4343ee /page/checkup.go | |
| parent | 97dd660925434be537cd9a49a1d0c893b223e357 (diff) | |
| download | go-website-0.0.22.tar.gz go-website-0.0.22.tar.xz | |
Add an internal caching option. It performs quite well.v0.0.22
Also refactor and clean up most linter warnings.
Diffstat (limited to 'page/checkup.go')
| -rw-r--r-- | page/checkup.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
