Remove more redundant return keywords

This commit is contained in:
Gwendal Roué committed 2020-03-09 07:52:35 +01:00
1 parent 1698afadb9
commit 4d60dc6cbb
2 files changed
+5 -5

No files matched your search

@@ -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))
}
}
+4 -4
View File
@@ -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<Int> = 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)