Skip to content

Commit

Permalink
remove some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
guguducken committed May 20, 2024
1 parent 20eaa18 commit b264b48
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions actions/upload-artifact-oss/pkg/oss/cos.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func (c *COS) UploadArtifact(bucket string, region string, storageClass string,
endpoint := fmt.Sprintf(cosUrlTpl, bucket, region)

key := filepath.Join(storePath, filepath.Base(artifactPath))
fileType := filepath.Ext(key)

u, _ := url.Parse(endpoint)
b := &cos.BaseURL{BucketURL: u}
Expand All @@ -52,7 +51,6 @@ func (c *COS) UploadArtifact(bucket string, region string, storageClass string,

opt := &cos.ObjectPutOptions{
ObjectPutHeaderOptions: &cos.ObjectPutHeaderOptions{
ContentType: fmt.Sprintf("application/%s", fileType),
XCosStorageClass: storageClass,
Listener: &progress{nil, sync.Once{}},
},
Expand Down

0 comments on commit b264b48

Please sign in to comment.