Skip to content

Commit 44929b0

Browse files
committed
apply suggestions
1 parent 81b8099 commit 44929b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/firebase_snippets_app/lib/snippets/firestore.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ class FirestoreSnippets extends DocSnippet {
109109
// Get a bundle from a server
110110
final url = Uri.https('example.com', '/create-bundle');
111111
final response = await http.get(url);
112-
String string = response.body;
113-
final buffer = Uint8List.fromList(string.codeUnits);
112+
String body = response.body;
113+
final buffer = Uint8List.fromList(body.codeUnits);
114114

115115
// Load a bundle from a buffer
116116
LoadBundleTask task = FirebaseFirestore.instance.loadBundle(buffer);
117117
await task.stream.toList();
118118

119119
// Use the cached named query
120120
final results = await FirebaseFirestore.instance.namedQueryGet(
121-
"example-query",
121+
"latest-stories-query",
122122
options: const GetOptions(
123123
source: Source.cache,
124124
),

0 commit comments

Comments
 (0)