Skip to content

Commit c59a3b2

Browse files
Move the products print call out of the product-query docregion
The print was only there to satisfy the unused_local_variable lint; it shouldn't be part of the visible README snippet.
1 parent 49ebb87 commit c59a3b2

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/in_app_purchase/in_app_purchase/README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ if (response.notFoundIDs.isNotEmpty) {
168168
// Handle the error.
169169
}
170170
final List<ProductDetails> products = response.productDetails;
171-
print(products);
172171
```
173172

174173
### Restoring previous purchases

‎packages/in_app_purchase/in_app_purchase/example/lib/readme_examples.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ Future<void> loadProducts() async {
139139
// Handle the error.
140140
}
141141
final List<ProductDetails> products = response.productDetails;
142-
print(products);
143142
// #enddocregion product-query
143+
print(products);
144144
}
145145

146146
Future<void> restorePurchases() async {

0 commit comments

Comments
 (0)