diff options
author | Alan Pearce | 2024-05-09 18:58:14 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-09 19:28:15 +0200 |
commit | 3b379a13710cae2adc56131af1069e6fb92976b8 (patch) | |
tree | d7801226ac84e201c6eea11a04941b1137adc78f /internal/importer/http.go | |
parent | 0986e8699e87addccbef43c0ce30a466988fed15 (diff) | |
download | searchix-3b379a13710cae2adc56131af1069e6fb92976b8.tar.lz searchix-3b379a13710cae2adc56131af1069e6fb92976b8.tar.zst searchix-3b379a13710cae2adc56131af1069e6fb92976b8.zip |
style: reformat with golines and enforce on commit
Diffstat (limited to 'internal/importer/http.go')
-rw-r--r-- | internal/importer/http.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/importer/http.go b/internal/importer/http.go index 1bf2428..6d60c44 100644 --- a/internal/importer/http.go +++ b/internal/importer/http.go @@ -44,7 +44,11 @@ func fetchFileIfNeeded(ctx context.Context, path string, url string) (needed boo case http.StatusOK: newMtime, err := time.Parse(time.RFC1123, res.Header.Get("Last-Modified")) if err != nil { - slog.Warn("could not parse Last-Modified header from response", "value", res.Header.Get("Last-Modified")) + slog.Warn( + "could not parse Last-Modified header from response", + "value", + res.Header.Get("Last-Modified"), + ) } err = file.WriteToFile(path, res.Body) if err != nil { |