Remove a bunch of unused cruft

This commit is contained in:
James Mills
2022-10-05 11:11:40 +10:00
parent 06c8ce3410
commit a07f747eb1
25 changed files with 31 additions and 1542 deletions

View File

@@ -2,7 +2,6 @@ package internal
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
@@ -67,7 +66,7 @@ func Scrape(conf *Config, url string) (*Entry, error) {
return nil, fmt.Errorf("error serializing entry: %s", err)
}
if err := ioutil.WriteFile(fn, data, 0644); err != nil {
if err := os.WriteFile(fn, data, 0644); err != nil {
log.WithError(err).Error("error persisting entry")
return nil, fmt.Errorf("error persisting entry: %w", err)
}