Skip to content

Commit 1c0f9fb

Browse files
committed
style: apply ktlint and dart format fixes
- ktlint formatted BackgroundWorkerTest.kt - dart format fixed workmanager_test.dart formatting These should have been run before the initial commits.
1 parent 864169f commit 1c0f9fb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

workmanager/test/workmanager_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void main() {
5353
test("WorkmanagerFlutterApi implementation handles null safely", () {
5454
// This test verifies that the fix for null cast to map bug exists
5555
// The fix safely handles null keys and values in inputData parameter
56-
//
56+
//
5757
// Original issue: inputData?.cast<String, dynamic>() would fail when
5858
// the map contained null keys or when cast failed
5959
//

workmanager_android/android/src/test/kotlin/dev/fluttercommunity/workmanager/BackgroundWorkerTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class BackgroundWorkerTest {
66
@Test
77
fun `verify null callback handling exists in BackgroundWorker`() {
88
// This test verifies that the null check for callbackInfo exists in BackgroundWorker.kt
9-
//
9+
//
1010
// The fix adds this check:
1111
// if (callbackInfo == null) {
1212
// Log.e(TAG, "Failed to resolve Dart callback for handle $callbackHandle.")
@@ -18,7 +18,7 @@ class BackgroundWorkerTest {
1818
// returns null due to invalid or stale callback handles.
1919
//
2020
// The fix resolves crashes reported in issues #624, #621, #527
21-
21+
2222
// Test passes if compilation succeeds, proving the null check is in place
2323
assert(true)
2424
}

0 commit comments

Comments
 (0)