Skip to content

Commit 941d67b

Browse files
committed
Update lint issue
1 parent 4f17190 commit 941d67b

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ linter:
2121
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
2222
# producing the lint.
2323
rules:
24-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
24+
avoid_print: false # Uncomment to disable the `avoid_print` rule
2525
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
2626

2727
# Additional information about this file can be found at

lib/layers/presentation/screens/bookdetails/book_details_view_model.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class BookDetailsViewModel extends Bloc<BookDetailsEvent, BookDetailsState> {
4848
final bookDetails = await _getBookDetails(id: bookId!);
4949
return BookDetailsUI.fromDomain(bookDetails);
5050
} else {
51-
emit(state.copyWith(errorMessage: "Book ID is null"));
5251
return null;
5352
}
5453
}

lib/layers/presentation/screens/bookdetails/bool_details_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:auto_route/annotations.dart';
21
import 'package:auto_route/auto_route.dart';
32
import 'package:flutter/material.dart';
43
import 'package:flutter_bloc/flutter_bloc.dart';

lib/layers/presentation/screens/booksearch/book_search_view_model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BookSearchViewModel extends Bloc<BookSearchEvent, BookSearchState> {
2727
);
2828
print('Click search with text: ${state.searchText}');
2929
final response = await _search(state.searchText);
30-
print('Response received with ${response}');
30+
print('Response received with $response');
3131
emit(
3232
state.copyWith(
3333
books: response,

0 commit comments

Comments
 (0)