Remove a bunch of unused cruft
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user