Skip to content

Commit 76e7317

Browse files
committed
dashboard/app: fix create_upload_url bug
create_upload_url: failed to unmarshal response: json: cannot unmarshal number into Go value of type string
1 parent 5905cb3 commit 76e7317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/app/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ func apiCreateUploadURL(c context.Context, payload io.Reader) (interface{}, erro
19371937
if bucket == "" {
19381938
return nil, errors.New("not configured")
19391939
}
1940-
return fmt.Printf("%s/%s.upload", bucket, uuid.New().String())
1940+
return fmt.Sprintf("%s/%s.upload", bucket, uuid.New().String()), nil
19411941
}
19421942

19431943
// apiSaveCoverage reads jsonl data from payload and stores it to coveragedb.

0 commit comments

Comments
 (0)