Skip to content

Commit

Permalink
swift format
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 17, 2024
1 parent 6f83b8b commit 36a67ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Sources/Soto/Extensions/S3/S3+multipart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,8 @@ extension S3 {

// from bucket, key and version id from a copySource string
func getBucketKeyVersion(from copySource: String) -> (bucket: String, key: String, versionId: String?)? {
let path: Substring
// drop first slash if it exists
= if copySource.first == "/"
{
// drop first slash if it exists
let path = if copySource.first == "/" {
copySource.dropFirst()
} else {
Substring(copySource)
Expand Down

0 comments on commit 36a67ce

Please sign in to comment.