Skip to content

Commit

Permalink
try to fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sbchaos committed Jan 9, 2025
1 parent 2330b2f commit 0928bfc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext/store/maxcompute/sheet_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,8 @@ func getBucketNameAndPath(loc string, fullName string) (string, string, error) {
return "", "", errors.InvalidArgument(EntityExternalTable, "unable to parse url "+loc)
}

bucketName := parts[3]

path := strings.Join(parts[4:], "/")
return bucketName, fmt.Sprintf("%s%s/file.csv", path, fullName), nil
return parts[3], fmt.Sprintf("%s%s/file.csv", path, fullName), nil
}

func writeToBucket(ctx context.Context, client *oss.Client, bucketName, objectKey, content string) error {
Expand Down

0 comments on commit 0928bfc

Please sign in to comment.