Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some additional lints #1569

Merged
merged 22 commits into from
Aug 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update example
  • Loading branch information
TimWhiting committed Aug 20, 2022
commit 9e0e40167b731acc7c9bbc7bec4f8bf3427d0323
3 changes: 3 additions & 0 deletions packages/riverpod/example/lib/models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class Repository {
'hash': hash,
},
);
if (result.data == null) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

return [];
}
final response = MarvelResponse.fromJson(result.data!);

return response //
Expand Down