Explorar o código

fix golint issues (#535)

Kevin Wan %!s(int64=4) %!d(string=hai) anos
pai
achega
f01472c9ea
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tools/goctl/model/sql/gen/keys_test.go

+ 2 - 2
tools/goctl/model/sql/gen/keys_test.go

@@ -45,10 +45,10 @@ func TestGenCacheKeys(t *testing.T) {
 			AutoIncrement: true,
 		},
 		UniqueIndex: map[string][]*parser.Field{
-			"mobile_unique": []*parser.Field{
+			"mobile_unique": {
 				mobileField,
 			},
-			"class_name_unique": []*parser.Field{
+			"class_name_unique": {
 				classField,
 				nameField,
 			},