Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubbelboer committed Nov 4, 2021
1 parent d613502 commit 931d0a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ func fsModTime(t time.Time) time.Time {
var filesLockMap sync.Map

func getFileLock(absPath string) *sync.Mutex {
v, _ := filesLockMap.LoadOrStore(absPath,&sync.Mutex{})
filelock:=v.(*sync.Mutex)
v, _ := filesLockMap.LoadOrStore(absPath, &sync.Mutex{})
filelock := v.(*sync.Mutex)
return filelock
}

0 comments on commit 931d0a4

Please sign in to comment.