Explorar o código

Remove else branch in example_read_test when code panic

Kevin Etienne %!s(int64=8) %!d(string=hai) anos
pai
achega
f9f61acccf
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      example_read_test.go

+ 1 - 2
example_read_test.go

@@ -30,7 +30,6 @@ func ExampleRow_ReadStruct() {
 	err := row.ReadStruct(readStruct)
 	if err != nil {
 		panic(err)
-	} else {
-		fmt.Println(readStruct)
 	}
+	fmt.Println(readStruct)
 }