From f78264e3291b04a268fcc1848e5aa4116bfde456 Mon Sep 17 00:00:00 2001 From: LK4D4 Date: Thu, 12 Jun 2014 09:15:53 +0400 Subject: [PATCH] Fix go vet errors Docker-DCO-1.1-Signed-off-by: Alexandr Morozov (github: LK4D4) Docker-DCO-1.1-Signed-off-by: Victor Vieux (github: vieux) --- graphdb/graphdb_test.go | 5 +++-- mflag/example/example.go | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/graphdb/graphdb_test.go b/graphdb/graphdb_test.go index 0c3e867..8cddd0b 100644 --- a/graphdb/graphdb_test.go +++ b/graphdb/graphdb_test.go @@ -1,13 +1,14 @@ package graphdb import ( - _ "code.google.com/p/gosqlite/sqlite3" "database/sql" "fmt" "os" "path" "strconv" "testing" + + _ "code.google.com/p/gosqlite/sqlite3" ) func newTestDb(t *testing.T) (*Database, string) { @@ -535,6 +536,6 @@ func TestConcurrentWrites(t *testing.T) { } } if any { - t.Fatal() + t.Fail() } } diff --git a/mflag/example/example.go b/mflag/example/example.go index 2d78baa..8af8ff9 100644 --- a/mflag/example/example.go +++ b/mflag/example/example.go @@ -28,8 +28,8 @@ func main() { flag.PrintDefaults() } else { fmt.Printf("s/#hidden/-string: %s\n", str) - fmt.Printf("b: %b\n", b) - fmt.Printf("-bool: %b\n", b2) + fmt.Printf("b: %t\n", b) + fmt.Printf("-bool: %t\n", b2) fmt.Printf("s/#hidden/-string(via lookup): %s\n", flag.Lookup("s").Value.String()) fmt.Printf("ARGS: %v\n", flag.Args()) }