File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ func UUIDToBlob(uuid string) []byte {
5555 }
5656 var clean strings.Builder
5757 clean .Grow (32 )
58- for _ , c := range uuid {
59- if c != '-' {
60- clean .WriteByte (byte ( c ) )
58+ for i := 0 ; i < len ( uuid ); i ++ {
59+ if uuid [ i ] != '-' {
60+ clean .WriteByte (uuid [ i ] )
6161 }
6262 }
6363 decoded , err := hex .DecodeString (clean .String ())
Original file line number Diff line number Diff line change @@ -5,13 +5,12 @@ package mpr
55import (
66 "testing"
77
8- "github.com/mendixlabs/mxcli/mdl/types"
98 "github.com/mendixlabs/mxcli/model"
109 "go.mongodb.org/mongo-driver/bson"
1110)
1211
1312func TestSerializeImageCollection_EmptyImages (t * testing.T ) {
14- ic := & types. ImageCollection {
13+ ic := & ImageCollection {
1514 BaseElement : model.BaseElement {ID : "ic-test-1" },
1615 ContainerID : model .ID ("module-id-1" ),
1716 Name : "TestIcons" ,
@@ -59,7 +58,7 @@ func TestSerializeImageCollection_EmptyImages(t *testing.T) {
5958}
6059
6160func TestSerializeImageCollection_DefaultExportLevel (t * testing.T ) {
62- ic := & types. ImageCollection {
61+ ic := & ImageCollection {
6362 BaseElement : model.BaseElement {ID : "ic-test-2" },
6463 ContainerID : model .ID ("module-id-1" ),
6564 Name : "Icons" ,
You can’t perform that action at this time.
0 commit comments