@@ -60,7 +60,11 @@ func (svc *ComponentDataService) UploadFiles(name string, tags []string, paths [
6060 }
6161 var initialResponse ComponentDataInitialResponseRaw
6262 err = doWithExponentialBackoffWaiting (func () error {
63- return svc .client .RequestEncoderDecoder (http .MethodPost , apiV2ComponentDataRequest , initialRequest , & initialResponse )
63+ return svc .client .RequestEncoderDecoder (http .MethodPost ,
64+ apiV2ComponentDataRequest ,
65+ initialRequest ,
66+ & initialResponse ,
67+ )
6468 })
6569 if err != nil {
6670 return "" , err
@@ -87,7 +91,11 @@ func (svc *ComponentDataService) UploadFiles(name string, tags []string, paths [
8791 }
8892 var completeResponse ComponentDataCompleteResponseRaw
8993 err = doWithExponentialBackoffWaiting (func () error {
90- return svc .client .RequestEncoderDecoder (http .MethodPost , apiV2ComponentDataComplete , completeRequest , & completeResponse )
94+ return svc .client .RequestEncoderDecoder (http .MethodPost ,
95+ apiV2ComponentDataComplete ,
96+ completeRequest ,
97+ & completeResponse ,
98+ )
9199 })
92100 if err != nil {
93101 return "" , err
@@ -98,7 +106,9 @@ func (svc *ComponentDataService) UploadFiles(name string, tags []string, paths [
98106 return initialResponse .Data .Guid , nil
99107}
100108
101- func buildComponentDataInitialRequest (name string , tags []string , paths []string ) (* ComponentDataInitialRequest , error ) {
109+ func buildComponentDataInitialRequest (
110+ name string , tags []string , paths []string ,
111+ ) (* ComponentDataInitialRequest , error ) {
102112 documents := make ([]* DocumentSpec , 0 , len (paths ))
103113 for _ , path := range paths {
104114 info , err := os .Lstat (path )
0 commit comments