From 4d60dc6cbbaffc9c236d787ade9fe03b7328f5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 9 Mar 2020 07:52:35 +0100 Subject: [PATCH] Remove more redundant return keywords --- Documentation/GoodPracticesForDesigningRecordTypes.md | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/GoodPracticesForDesigningRecordTypes.md b/Documentation/GoodPracticesForDesigningRecordTypes.md index 7ebd92353..2ff2659c8 100644 --- a/Documentation/GoodPracticesForDesigningRecordTypes.md +++ b/Documentation/GoodPracticesForDesigningRecordTypes.md @@ -231,7 +231,7 @@ extension DerivableRequest where RowDecoder == Book { // A book is from a country if it can be // joined with an author from that country: // ---------------------------------v - return joining(required: Book.author.filter(country: authorCountry)) + self.joining(required: Book.author.filter(country: authorCountry)) } } diff --git a/README.md b/README.md index 37e95cdb4..517b59c10 100644 --- a/README.md +++ b/README.md @@ -3340,7 +3340,7 @@ struct Place: Codable { var coordinate: CLLocationCoordinate2D { get { - return CLLocationCoordinate2D( + CLLocationCoordinate2D( latitude: latitude, longitude: longitude) } @@ -3448,7 +3448,7 @@ struct Place: Encodable { var coordinate: CLLocationCoordinate2D { get { - return CLLocationCoordinate2D( + CLLocationCoordinate2D( latitude: latitude, longitude: longitude) } @@ -7393,7 +7393,7 @@ let futureCount: DatabaseFuture = try dbPool.writeWithoutTransaction { db i // <- not in a transaction here let futureCount = dbPool.concurrentRead { db - return try Player.fetchCount(db) + try Player.fetchCount(db) } return futureCount } @@ -7414,7 +7414,7 @@ try dbPool.writeWithoutTransaction { db in let futureCount = dbPool.concurrentRead { db // Guaranteed to be non-zero - return try Player.fetchCount(db) + try Player.fetchCount(db) } try Player.deleteAll(db)