Skip to content

Commit cf96fdd

Browse files
authored
Fix typos (#7371)
1 parent 683bce1 commit cf96fdd

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

app/lib/account/backend.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ class AccountBackend {
582582
/// Returns the [UserSession] associated with the [sessionId] or
583583
/// `null` if it does not exists.
584584
///
585-
/// Deletes the session entry if is has already expired and
585+
/// Deletes the session entry if it has already expired and
586586
/// clears the related cache too.
587587
Future<UserSession?> lookupValidUserSession(String sessionId) async {
588588
final key = _db.emptyKey.append(UserSession, id: sessionId);

app/lib/frontend/request_context.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class RequestContext {
3838
/// The parsed experimental flags.
3939
final ExperimentalFlags experimentalFlags;
4040

41-
/// The CSRF token recieved via the header of the request.
41+
/// The CSRF token received via the header of the request.
4242
final String? csrfToken;
4343

4444
final SessionData? sessionData;

app/lib/package/backend.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ class PackageBackend {
815815
throw PackageRejectedException.uploadRestricted();
816816
}
817817
_logger.info('Starting async upload.');
818-
// NOTE: We use a authenticated user scope here to ensure the uploading
818+
// NOTE: We use an authenticated user scope here to ensure the uploading
819819
// user is authenticated. But we're not validating anything at this point
820820
// because we don't even know which package or version is going to be
821821
// uploaded.

app/lib/shared/exceptions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class PackageRejectedException extends ResponseException {
269269
: super._(400, 'PackageRejected',
270270
'Version $version of package $package was deleted previously, re-upload is not allowed.');
271271

272-
/// The package is has an active `isBlocked` flag, no further version is allowed.
272+
/// The package has an active `isBlocked` flag, no further version is allowed.
273273
PackageRejectedException.isBlocked()
274274
: super._(400, 'PackageRejected', 'Package has been blocked.');
275275

pkg/indexed_blob/lib/indexed_blob.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class BlobIndex {
289289
}
290290
final blobId = r.expectString();
291291

292-
// Expect a index key
292+
// Expect an index key
293293
if (!_skipUntilKey(r, 'index')) {
294294
throw const FormatException('expected "index" key');
295295
}
@@ -328,7 +328,7 @@ class BlobIndex {
328328
}
329329
final blobId = r.expectString();
330330

331-
// Expect a index key
331+
// Expect an index key
332332
if (!_skipUntilKey(r, 'index')) {
333333
throw const FormatException('expected "index" key');
334334
}
@@ -372,7 +372,7 @@ class BlobIndex {
372372
}
373373
final originalBlobId = r.expectString();
374374

375-
// Expect a index key
375+
// Expect an index key
376376
if (!_skipUntilKey(r, 'index')) {
377377
throw const FormatException('expected "index" key');
378378
}

0 commit comments

Comments
 (0)