remove --debug from make lint

This commit is contained in:
Shawn Smith
2016-04-29 18:25:53 +09:00
parent b7e81332a0
commit a2918ff957
3 changed files with 4 additions and 4 deletions

View File

@@ -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:

View File

@@ -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
}

View File

@@ -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