]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/lockdir.go
go fmt
[nncp.git] / src / lockdir.go
index a3e66f09c02ee68a80c38ec8ff2ae6b51e74c15c..919d4cf3412e4f38f72e9fb5996386b53632e309 100644 (file)
@@ -51,6 +51,6 @@ func (ctx *Ctx) LockDir(nodeId *NodeId, lockCtx string) (*os.File, error) {
 func (ctx *Ctx) UnlockDir(fd *os.File) {
        if fd != nil {
                unix.Flock(int(fd.Fd()), unix.LOCK_UN) // #nosec G104
-               fd.Close() // #nosec G104
+               fd.Close()                             // #nosec G104
        }
 }