From 64805fe5b6ccf1264d3675c04a11ace8bedc8844 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Wed, 3 Nov 2021 12:12:41 +0100 Subject: [PATCH] Remove unneeded `return` (#950) --- add_to_app/books/README.md | 2 +- add_to_app/books/flutter_module_books/lib/api.dart | 4 ---- place_tracker/lib/stub_data.dart | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/add_to_app/books/README.md b/add_to_app/books/README.md index 17552f999..2671d94f4 100644 --- a/add_to_app/books/README.md +++ b/add_to_app/books/README.md @@ -2,7 +2,7 @@ Mimics a real world use-case of embedding Flutter into an existing Android app and demonstrates using [Pigeon](https://pub.dev/packages/pigeon) to communicate -between Fluter and the host application. +between Flutter and the host application. ## Description diff --git a/add_to_app/books/flutter_module_books/lib/api.dart b/add_to_app/books/flutter_module_books/lib/api.dart index f7c941bdc..02bb6ad1b 100644 --- a/add_to_app/books/flutter_module_books/lib/api.dart +++ b/add_to_app/books/flutter_module_books/lib/api.dart @@ -165,8 +165,6 @@ class HostBookApi { message: error['message'] as String?, details: error['details'], ); - } else { - return; } } @@ -190,8 +188,6 @@ class HostBookApi { message: error['message'] as String?, details: error['details'], ); - } else { - return; } } } diff --git a/place_tracker/lib/stub_data.dart b/place_tracker/lib/stub_data.dart index d97b15039..785d0b78a 100644 --- a/place_tracker/lib/stub_data.dart +++ b/place_tracker/lib/stub_data.dart @@ -147,7 +147,7 @@ class StubData { static const reviewStrings = [ 'My favorite place in Portland. The employees are wonderful and so is the food. I go here at least once a month!', - 'Staff was very friendly. Great atmosphere and good music. Would reccommend.', + 'Staff was very friendly. Great atmosphere and good music. Would recommend.', 'Best. Place. In. Town. Period.' ]; }