Skip to content

Commit 4d35a52

Browse files
authored
Fix exported API bucket check. (#8272)
1 parent 290625e commit 4d35a52

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/lib/shared/configuration.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ final class Configuration {
423423
publicPackagesBucketName!,
424424
searchSnapshotBucketName!,
425425
taskResultBucketName!,
426-
exportedApiBucketName!,
426+
if (exportedApiBucketName != null) exportedApiBucketName!,
427427
]);
428428

429429
late final isProduction = projectId == 'dartlang-pub';

app/test/shared/configuration_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ void main() {
7777
if (config.isProduction) {
7878
expect(rateLimits, hasLength(greaterThan(10)));
7979
}
80+
81+
// expect bucket names are non-null
82+
expect(config.allBucketNames, isNotEmpty);
8083
}
8184
});
8285
}

0 commit comments

Comments
 (0)