Skip to content

Commit 584a1ec

Browse files
author
ekjotmultani
committed
fixed formatting and annotated internal member use
1 parent ed3fbd2 commit 584a1ec

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

packages/storage/amplify_storage_s3_dart/lib/src/amplify_storage_s3_dart_impl.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class AmplifyStorageS3Dart extends StoragePluginInterface
124124
});
125125
}
126126

127-
@override
127+
@override
128128
S3ListOperation list({
129129
required StoragePath path,
130130
StorageListOptions? options,
@@ -152,7 +152,6 @@ class AmplifyStorageS3Dart extends StoragePluginInterface
152152
);
153153
}
154154

155-
156155
@override
157156
S3GetPropertiesOperation getProperties({
158157
required StoragePath path,

packages/storage/amplify_storage_s3_dart/lib/src/storage_s3_service/service/storage_s3_service_impl.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ class StorageS3Service {
125125
const S3ListPluginOptions();
126126

127127
final resolvedPath = await _pathResolver.resolvePath(path: path);
128-
final s3ClientInfo = options.bucket == null ? getS3ClientInfo() : getS3ClientInfo(storageBucket: options.bucket);
128+
final s3ClientInfo = options.bucket == null
129+
? getS3ClientInfo()
130+
: getS3ClientInfo(storageBucket: options.bucket);
129131

130132
if (!s3PluginOptions.listAll) {
131133
final request = s3.ListObjectsV2Request.build((builder) {
@@ -157,8 +159,10 @@ class StorageS3Service {
157159
try {
158160
final request = s3.ListObjectsV2Request.build((builder) {
159161
builder
160-
// ignore: invalid_use_of_internal_member
161-
..bucket = options.bucket == null ? _storageOutputs.bucketName : options.bucket!.resolveBucketInfo(_storageOutputs).bucketName
162+
..bucket = options.bucket == null
163+
? _storageOutputs.bucketName
164+
// ignore: invalid_use_of_internal_member
165+
: options.bucket!.resolveBucketInfo(_storageOutputs).bucketName
162166
..prefix = resolvedPath
163167
..delimiter = s3PluginOptions.excludeSubPaths
164168
? s3PluginOptions.delimiter

packages/storage/amplify_storage_s3_dart/test/amplify_storage_s3_dart_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ void main() {
140140
const testOptions = StorageListOptions(
141141
pluginOptions: S3ListPluginOptions(excludeSubPaths: true),
142142
nextToken: 'next-token-123',
143-
bucket: StorageBucket.fromBucketInfo(BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2')),
143+
bucket: StorageBucket.fromBucketInfo(
144+
BucketInfo(bucketName: 'unit-test-bucket', region: 'us-east-2')),
144145
pageSize: 2,
145146
);
146147

0 commit comments

Comments
 (0)