Skip to content

Commit

Permalink
style: reduce indent
Browse files Browse the repository at this point in the history
Signed-off-by: black-desk <[email protected]>
  • Loading branch information
black-desk committed Oct 24, 2023
1 parent 01b896e commit facb901
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkg/cgfsmon/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import (

func (m *CGroupFSMonitor) walkFn(events *[]types.CGroupEvent) func(path string, d fs.DirEntry, err error) error {
return func(path string, d fs.DirEntry, err error) error {
if errors.Is(err, fs.ErrNotExist) {
m.log.Debug(
"Cgroup had been removed.",
"path", path,
)
err = nil
}

if err != nil {
if errors.Is(err, fs.ErrNotExist) {
m.log.Debug(
"Cgroup had been removed.",
"path", path,
)
err = nil
}
m.log.Errorw(
"Errors occurred while first time going through cgroupfs.",
"path", path,
Expand Down

0 comments on commit facb901

Please sign in to comment.