From 7ce671beeec4d67990e63bb41f08cbd16803e300 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 13 Jul 2017 09:47:45 -0700 Subject: [PATCH 1/2] *: fix gofmt style issues in 'range' --- db_test.go | 4 ++-- freelist.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/db_test.go b/db_test.go index f667eae..46db4d2 100644 --- a/db_test.go +++ b/db_test.go @@ -1587,7 +1587,7 @@ func mustContainKeys(b *bolt.Bucket, m map[string]string) { // Check for keys found in bucket that shouldn't be there. var keys []string - for k, _ := range found { + for k := range found { if _, ok := m[string(k)]; !ok { keys = append(keys, k) } @@ -1598,7 +1598,7 @@ func mustContainKeys(b *bolt.Bucket, m map[string]string) { } // Check for keys not found in bucket that should be there. - for k, _ := range m { + for k := range m { if _, ok := found[string(k)]; !ok { keys = append(keys, k) } diff --git a/freelist.go b/freelist.go index 8ac0d61..679fcbb 100644 --- a/freelist.go +++ b/freelist.go @@ -6,7 +6,6 @@ import ( "unsafe" ) - // txPending holds a list of pgids and corresponding allocation txns // that are pending to be freed. type txPending struct { From a30394a020e13a912fc39a9a44636e7db580a6cf Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 27 Jul 2017 11:11:07 -0700 Subject: [PATCH 2/2] *: update git paths to 'coreos/bbolt' --- Makefile | 4 ++-- cmd/bolt/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e035e63..866184e 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,9 @@ race: # go get github.com/kisielk/errcheck errcheck: - @errcheck -ignorepkg=bytes -ignore=os:Remove github.com/boltdb/bolt + @errcheck -ignorepkg=bytes -ignore=os:Remove github.com/coreos/bbolt -test: +test: @go test -v -cover . @go test -v ./cmd/bolt diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index 057eca5..387ce06 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -19,7 +19,7 @@ import ( "unicode/utf8" "unsafe" - "github.com/boltdb/bolt" + bolt "github.com/coreos/bbolt" ) var (