File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
libs/public/go/sdk/v2beta Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,14 @@ func NewCIDR(cidr string) (*CIDRBlock, error) {
4747 fmt .Println ("Error: ones value is out of uint32 range" )
4848 return nil , errors .New ("error: ones value is out of uint32 range" )
4949 }
50- subnetBits := uint32 (ones )
50+ subnetBits := uint32 (ones ) //nolint:gosec
5151
5252 // Prevent G115: integer overflow conversion int -> uint32 (gosec)
5353 if bits < 0 {
5454 fmt .Println ("Error: bits value is out of uint32 range" )
5555 return nil , errors .New ("error: bits value is out of uint32 range" )
5656 }
57- totalBits := uint32 (bits )
57+ totalBits := uint32 (bits ) //nolint:gosec
5858
5959 // Prevent G115: integer overflow conversion int -> uint64 (gosec)
6060 if totalIPs < 0 {
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ func StructToByteArray(data interface{}) ([]byte, error) {
152152 return buf .Bytes (), err
153153}
154154
155+ // GetProtoMessageFromTypeURL get proto from type URL
155156func GetProtoMessageFromTypeURL (typeURL string ) (proto.Message , error ) {
156157 msgType , err := protoregistry .GlobalTypes .FindMessageByURL (typeURL )
157158 if err != nil {
You can’t perform that action at this time.
0 commit comments