diff --git a/Makefile b/Makefile index 0d3d839..f3f99bd 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ install: ./scripts/make-install.sh lint: - gometalinter --debug --exclude=vendor --disable-all --enable=lint,vet ./... + gometalinter --exclude=vendor --exclude=repos --disable-all --enable=lint,vet ./... find . -name '*.go' | xargs gofmt -w -s test: diff --git a/vendor/github.com/boltdb/bolt/bolt_windows.go b/vendor/github.com/boltdb/bolt/bolt_windows.go index d538e6a..b00fb07 100644 --- a/vendor/github.com/boltdb/bolt/bolt_windows.go +++ b/vendor/github.com/boltdb/bolt/bolt_windows.go @@ -89,7 +89,7 @@ func flock(db *DB, mode os.FileMode, exclusive bool, timeout time.Duration) erro func funlock(db *DB) error { err := unlockFileEx(syscall.Handle(db.lockfile.Fd()), 0, 1, 0, &syscall.Overlapped{}) db.lockfile.Close() - os.Remove(db.path+lockExt) + os.Remove(db.path + lockExt) return err } diff --git a/vendor/github.com/boltdb/bolt/db.go b/vendor/github.com/boltdb/bolt/db.go index 501d36a..51c54bd 100644 --- a/vendor/github.com/boltdb/bolt/db.go +++ b/vendor/github.com/boltdb/bolt/db.go @@ -94,7 +94,7 @@ type DB struct { path string file *os.File lockfile *os.File // windows only - dataref []byte // mmap'ed readonly, write throws SEGV + dataref []byte // mmap'ed readonly, write throws SEGV data *[maxMapSize]byte datasz int filesz int // current on disk file size @@ -383,7 +383,7 @@ func (db *DB) close() error { if !db.opened { return nil } - + db.opened = false db.freelist = nil