aboutsummaryrefslogtreecommitdiff
path: root/fs.go
diff options
context:
space:
mode:
authorGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-11-04 13:24:40 +0100
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2021-11-04 13:24:40 +0100
commit931d0a4523197a0d06def6ef32b1849f0663f5db (patch)
treecba7130f87626ebc30231346148f346b3ce5a7ee /fs.go
parentuse sync.map is better (#1145) (diff)
downloadfasthttp-931d0a4523197a0d06def6ef32b1849f0663f5db.tar.gz
fasthttp-931d0a4523197a0d06def6ef32b1849f0663f5db.tar.bz2
fasthttp-931d0a4523197a0d06def6ef32b1849f0663f5db.zip
Fix lint
Diffstat (limited to 'fs.go')
-rw-r--r--fs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs.go b/fs.go
index 147f315..c3be8c0 100644
--- a/fs.go
+++ b/fs.go
@@ -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
}