Skip to content

Commit

Permalink
Fix. typos in leak_tracker (#234)
Browse files Browse the repository at this point in the history
Thank you!!!
  • Loading branch information
droidbg authored May 24, 2024
1 parent bd93b7e commit 6f7c2c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'delivery.dart';
import 'messages.dart';
import 'primitives.dart';

bool _extentsionRegistered = false;
bool _extensionRegistered = false;

/// Registers service extension to signal that leak tracking is
/// already enabled and other leak tracking systems
Expand Down Expand Up @@ -76,13 +76,13 @@ bool _registerServiceExtension(
Future<ServiceExtensionResponse> Function(String, Map<String, String>)
handler,
) {
if (_extentsionRegistered) return false;
if (_extensionRegistered) return false;
try {
registerExtension(
memoryLeakTrackingExtensionName,
handler,
);
_extentsionRegistered = true;
_extensionRegistered = true;

return true;
// ignore: avoid_catching_errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class IgnoredLeaks {
/// start of leak tracking contains a frame, located after the test body
/// frame, that points to the folder `test` or the package `flutter_test`,
/// except:
/// * methods intended to be called from test body like `runAsunc` or `pump`
/// * methods intended to be called from test body like `runAsync` or `pump`
/// * frames that match [testHelperExceptions]
final bool createdByTestHelpers;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/leak_tracker/lib/src/shared/_primitives.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// Result of [identityHashCode].
typedef IdentityHashCode = int;

/// Finilizer builder to mock standard [identityHashCode].
/// Finalizer builder to mock standard [identityHashCode].
typedef IdentityHashCoder = IdentityHashCode Function(Object object);

int standardIdentityHashCoder(Object object) => identityHashCode(object);
Expand Down

0 comments on commit 6f7c2c0

Please sign in to comment.