diff options
author | Alan Pearce | 2024-06-23 19:43:31 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-23 19:43:31 +0200 |
commit | ca4e1a14212033d81caf4a58107a4bdc2912c4b7 (patch) | |
tree | 25fa2afc9f793285d075f0c5cb1d628dde122495 /internal/server | |
parent | 38fb02f470c32cf2a3f4cb9bef540840d85f9254 (diff) | |
download | website-ca4e1a14212033d81caf4a58107a4bdc2912c4b7.tar.lz website-ca4e1a14212033d81caf4a58107a4bdc2912c4b7.tar.zst website-ca4e1a14212033d81caf4a58107a4bdc2912c4b7.zip |
(automatically) format with golines
Diffstat (limited to 'internal/server')
-rw-r--r-- | internal/server/dev.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/server/dev.go b/internal/server/dev.go index ce718eb..7898a09 100644 --- a/internal/server/dev.go +++ b/internal/server/dev.go @@ -80,7 +80,9 @@ func (watcher FileWatcher) Start(callback func(string)) { if event.Has(fsnotify.Create) || event.Has(fsnotify.Rename) { f, err := os.Stat(event.Name) if err != nil { - slog.Error(fmt.Sprintf("error handling %s event: %v", event.Op.String(), err)) + slog.Error( + fmt.Sprintf("error handling %s event: %v", event.Op.String(), err), + ) } else if f.IsDir() { err = watcher.Add(event.Name) if err != nil { |