From 2f8683fd5f65a1641fff26502383b8f201257f12 Mon Sep 17 00:00:00 2001 From: "Diogo Franco (Kovensky)" Date: Sun, 14 Jul 2013 01:54:46 -0300 Subject: [PATCH] anidb: Fix compilation of flock_other Also fixes inverted if test. --- flock_other.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flock_other.go b/flock_other.go index 2250a19..bf275a2 100644 --- a/flock_other.go +++ b/flock_other.go @@ -8,9 +8,9 @@ type flockLock struct { locking.FLock } -func lockFile(p path) fileLock { +func lockFile(p string) fileLock { flock, err := locking.NewFLock(p) - if err != nil { + if err == nil { return &flockLock{FLock: flock} } return nil -- 2.44.0