Browse Source

Make gofmt happy (#704)

Julien Schmidt 8 years ago
parent
commit
404c02a8a3
3 changed files with 1 additions and 3 deletions
  1. 0 1
      driver_test.go
  2. 0 1
      dsn.go
  3. 1 1
      utils.go

+ 0 - 1
driver_test.go

@@ -1375,7 +1375,6 @@ func TestTimezoneConversion(t *testing.T) {
 
 	// Regression test for timezone handling
 	tzTest := func(dbt *DBTest) {
-
 		// Create table
 		dbt.mustExec("CREATE TABLE test (ts TIMESTAMP)")
 

+ 0 - 1
dsn.go

@@ -398,7 +398,6 @@ func parseDSNParams(cfg *Config, params string) (err error) {
 
 		// cfg params
 		switch value := param[1]; param[0] {
-
 		// Disable INFILE whitelist / enable all files
 		case "allowAllFiles":
 			var isBool bool

+ 1 - 1
utils.go

@@ -566,8 +566,8 @@ func readLengthEncodedInteger(b []byte) (uint64, bool, int) {
 	if len(b) == 0 {
 		return 0, true, 1
 	}
-	switch b[0] {
 
+	switch b[0] {
 	// 251: NULL
 	case 0xfb:
 		return 0, true, 1