Skip to content

Commit 9a153d1

Browse files
author
wangyue
committed
Feat actiontech/dms-ee/issues/125: fix go lint
1 parent f470bb5 commit 9a153d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqle/driver/v2/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func ConvertProtoSqlObjectTypeToDriver(objectType protoV2.SQLObjectType) (SQLObj
302302
}
303303

304304
func ConvertDriverSQLOpsResponseToProto(sqlOps []*SQLObjectOps) (*protoV2.GetSQLOpResponse, error) {
305-
var sqlOpList []*protoV2.SQLOps
305+
sqlOpList := make([]*protoV2.SQLOps, 0, len(sqlOps))
306306
for _, sqlOp := range sqlOps {
307307

308308
var objectOpList []*protoV2.SQLObjectOp

0 commit comments

Comments
 (0)