Fix go vet errors
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4) Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
parent
d18d9ffeaa
commit
f78264e329
2 changed files with 5 additions and 4 deletions
|
@ -1,13 +1,14 @@
|
||||||
package graphdb
|
package graphdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "code.google.com/p/gosqlite/sqlite3"
|
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
_ "code.google.com/p/gosqlite/sqlite3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newTestDb(t *testing.T) (*Database, string) {
|
func newTestDb(t *testing.T) (*Database, string) {
|
||||||
|
@ -535,6 +536,6 @@ func TestConcurrentWrites(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if any {
|
if any {
|
||||||
t.Fatal()
|
t.Fail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,8 +28,8 @@ func main() {
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("s/#hidden/-string: %s\n", str)
|
fmt.Printf("s/#hidden/-string: %s\n", str)
|
||||||
fmt.Printf("b: %b\n", b)
|
fmt.Printf("b: %t\n", b)
|
||||||
fmt.Printf("-bool: %b\n", b2)
|
fmt.Printf("-bool: %t\n", b2)
|
||||||
fmt.Printf("s/#hidden/-string(via lookup): %s\n", flag.Lookup("s").Value.String())
|
fmt.Printf("s/#hidden/-string(via lookup): %s\n", flag.Lookup("s").Value.String())
|
||||||
fmt.Printf("ARGS: %v\n", flag.Args())
|
fmt.Printf("ARGS: %v\n", flag.Args())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue