Skip to content

Commit 33db43a

Browse files
authored
Small API cleanup (#722)
1 parent fa31fb4 commit 33db43a

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

discoveryapis_commons/lib/src/requests.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class Media {
2727
}
2828
}
2929

30-
// ignore: avoid_classes_with_only_static_members
3130
/// Represents options for uploading a [Media].
32-
class UploadOptions {
31+
// ignore: avoid_classes_with_only_static_members
32+
final class UploadOptions {
3333
/// Use either simple uploads (only media) or multipart for media+metadata
3434
static const UploadOptions defaultOptions = UploadOptions();
3535

@@ -40,7 +40,7 @@ class UploadOptions {
4040
}
4141

4242
/// Specifies options for resumable uploads.
43-
class ResumableUploadOptions extends UploadOptions {
43+
final class ResumableUploadOptions extends UploadOptions {
4444
static Duration? exponentialBackoff(int failedAttempts) {
4545
// Do not retry more than 5 times.
4646
if (failedAttempts > 5) return null;

discoveryapis_generator/lib/src/pubspec.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ class Pubspec {
2323
this.repository,
2424
Map<String, String>? extraDevDependencies,
2525
this.resolution,
26-
}) : devDependencies = {
27-
..._defaultDevDependencies,
28-
if (extraDevDependencies != null) ...extraDevDependencies,
29-
};
26+
}) : devDependencies = {..._defaultDevDependencies, ...?extraDevDependencies};
3027

3128
String get sdkConstraint => targetDartVersionConstraint;
3229

googleapis_auth/lib/src/crypto/rsa.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ final class RSAPrivateKey {
4848
);
4949
}
5050

51-
// ignore: avoid_classes_with_only_static_members
5251
/// Provides a [rawSign] method for signing messages with a [RSAPrivateKey].
52+
// ignore: avoid_classes_with_only_static_members
5353
abstract final class RSAAlgorithm {
5454
/// Performs the private key operation (signing) on [bytes] with the private
5555
/// [key].

0 commit comments

Comments
 (0)