Skip to content

Commit

Permalink
chore: fix analyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
pr-Mais committed Nov 22, 2021
1 parent 47d5b5a commit 53838d8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/firebase_core/firebase_core/example/lib/main.dart
Expand Up @@ -36,7 +36,6 @@ class MyApp extends StatelessWidget {
FirebaseApp app =
await Firebase.initializeApp(name: name, options: firebaseOptions);

assert(app != null);
print('Initialized $app');
}

Expand Down
Expand Up @@ -67,8 +67,9 @@ void testsMain() {
);
await remoteConfig.setConfigSettings(
RemoteConfigSettings(
fetchTimeout: const Duration(seconds: 10),
minimumFetchInterval: Duration.zero),
fetchTimeout: const Duration(seconds: 10),
minimumFetchInterval: Duration.zero,
),
);
expect(remoteConfig.settings.fetchTimeout, const Duration(seconds: 10));
expect(remoteConfig.settings.minimumFetchInterval, Duration.zero);
Expand Down
Expand Up @@ -151,7 +151,7 @@ class _TaskManager extends State<TaskManager> {
Future<void> _downloadBytes(firebase_storage.Reference ref) async {
final bytes = await ref.getData();
// Download...
await saveAsBytes(bytes, 'some-image.jpg');
await saveAsBytes(bytes!, 'some-image.jpg');
}

Future<void> _downloadLink(firebase_storage.Reference ref) async {
Expand Down
@@ -1,6 +1,6 @@
import 'dart:typed_data';

/// Present a dialog so the user can save as... a bunch of bytes.
Future<void> saveAsBytes(Uint8List? bytes, String suggestedName) async {
Future<void> saveAsBytes(Uint8List bytes, String suggestedName) async {
return;
}

0 comments on commit 53838d8

Please sign in to comment.