run gofumpt

This commit is contained in:
Matthew Penner
2021-11-15 10:37:56 -07:00
parent 43d66d14b2
commit 04b9ef69a1
17 changed files with 34 additions and 36 deletions

View File

@@ -115,8 +115,8 @@ func (fs *Filesystem) ParallelSafePath(paths []string) ([]string, error) {
var cleaned []string
// Simple locker function to avoid racy appends to the array of cleaned paths.
var m = new(sync.Mutex)
var push = func(c string) {
m := new(sync.Mutex)
push := func(c string) {
m.Lock()
cleaned = append(cleaned, c)
m.Unlock()