Skip to content

Commit 0e6213b

Browse files
committed
Remove unused region argument
1 parent e9f69cb commit 0e6213b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

swift/example_code/s3-transfer-manager/upload-file/Sources/Example.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ import SmithyStreams
1919
// snippet-end:[swift.s3tm.upload.imports]
2020

2121
class Example {
22-
let region: String
2322
let filePath: String
2423
let bucketName: String
2524

26-
init(region: String, path: String, bucket: String) {
27-
self.region = region
25+
init(path: String, bucket: String) {
2826
self.filePath = path
2927
self.bucketName = bucket
3028
}

swift/example_code/s3-transfer-manager/upload-file/Sources/entry.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import ArgumentParser
55
import Foundation
66

77
struct ExampleCommand: ParsableCommand {
8-
@Option(help: "AWS Region name")
9-
var region = "us-east-1"
108
@Argument(help: "Path of the file to write to Amazon S3")
119
var filePath: String
1210
@Argument(help: "Name of the Amazon S3 bucket to upload the file to")
@@ -24,7 +22,7 @@ struct ExampleCommand: ParsableCommand {
2422
/// Called by ``main()`` to do the actual running of the AWS
2523
/// example.
2624
func runAsync() async throws {
27-
let example = Example(region: region, path: filePath, bucket: bucketName)
25+
let example = Example(path: filePath, bucket: bucketName)
2826

2927
try await example.run()
3028
}

0 commit comments

Comments
 (0)