Skip to content

Commit 1260980

Browse files
committed
Remove return keywords
1 parent f0cfde6 commit 1260980

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

GRDB/Core/Row.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ extension Row {
12851285
throws -> [Row]
12861286
{
12871287
// The cursor reuses a single mutable row. Return immutable copies.
1288-
return try Array(fetchCursor(statement, arguments: arguments, adapter: adapter).map { $0.copy() })
1288+
try Array(fetchCursor(statement, arguments: arguments, adapter: adapter).map { $0.copy() })
12891289
}
12901290

12911291
/// Returns a set of rows fetched from a prepared statement.
@@ -1306,7 +1306,7 @@ extension Row {
13061306
throws -> Set<Row>
13071307
{
13081308
// The cursor reuses a single mutable row. Return immutable copies.
1309-
return try Set(fetchCursor(statement, arguments: arguments, adapter: adapter).map { $0.copy() })
1309+
try Set(fetchCursor(statement, arguments: arguments, adapter: adapter).map { $0.copy() })
13101310
}
13111311

13121312
/// Returns a single row fetched from a prepared statement.
@@ -2089,27 +2089,27 @@ protocol RowImpl {
20892089
extension RowImpl {
20902090
func copiedRow(_ row: Row) -> Row {
20912091
// unless customized, assume unsafe and unadapted row
2092-
return Row(impl: ArrayRowImpl(columns: Array(row)))
2092+
Row(impl: ArrayRowImpl(columns: Array(row)))
20932093
}
20942094

20952095
func unscopedRow(_ row: Row) -> Row {
20962096
// unless customized, assume unadapted row (see AdaptedRowImpl for customization)
2097-
return row
2097+
row
20982098
}
20992099

21002100
func unadaptedRow(_ row: Row) -> Row {
21012101
// unless customized, assume unadapted row (see AdaptedRowImpl for customization)
2102-
return row
2102+
row
21032103
}
21042104

21052105
func scopes(prefetchedRows: Row.PrefetchedRowsView) -> Row.ScopesView {
21062106
// unless customized, assume unuscoped row (see AdaptedRowImpl for customization)
2107-
return Row.ScopesView()
2107+
Row.ScopesView()
21082108
}
21092109

21102110
func hasNull(atUncheckedIndex index: Int) -> Bool {
21112111
// unless customized, use slow check (see StatementRowImpl and AdaptedRowImpl for customization)
2112-
return databaseValue(atUncheckedIndex: index).isNull
2112+
databaseValue(atUncheckedIndex: index).isNull
21132113
}
21142114

21152115
func fastDecode<Value: DatabaseValueConvertible & StatementColumnConvertible>(
@@ -2118,7 +2118,7 @@ extension RowImpl {
21182118
throws -> Value
21192119
{
21202120
// unless customized, use slow decoding (see StatementRowImpl and AdaptedRowImpl for customization)
2121-
return try Value.decode(
2121+
try Value.decode(
21222122
fromDatabaseValue: databaseValue(atUncheckedIndex: index),
21232123
context: RowDecodingContext(row: Row(impl: self), key: .columnIndex(index)))
21242124
}
@@ -2129,21 +2129,21 @@ extension RowImpl {
21292129
throws -> Value?
21302130
{
21312131
// unless customized, use slow decoding (see StatementRowImpl and AdaptedRowImpl for customization)
2132-
return try Value.decodeIfPresent(
2132+
try Value.decodeIfPresent(
21332133
fromDatabaseValue: databaseValue(atUncheckedIndex: index),
21342134
context: RowDecodingContext(row: Row(impl: self), key: .columnIndex(index)))
21352135
}
21362136

21372137
func fastDecodeDataNoCopy(atUncheckedIndex index: Int) throws -> Data {
21382138
// unless customized, copy data (see StatementRowImpl and AdaptedRowImpl for customization)
2139-
return try Data.decode(
2139+
try Data.decode(
21402140
fromDatabaseValue: databaseValue(atUncheckedIndex: index),
21412141
context: RowDecodingContext(row: Row(impl: self), key: .columnIndex(index)))
21422142
}
21432143

21442144
func fastDecodeDataNoCopyIfPresent(atUncheckedIndex index: Int) throws -> Data? {
21452145
// unless customized, copy data (see StatementRowImpl and AdaptedRowImpl for customization)
2146-
return try Data.decodeIfPresent(
2146+
try Data.decodeIfPresent(
21472147
fromDatabaseValue: databaseValue(atUncheckedIndex: index),
21482148
context: RowDecodingContext(row: Row(impl: self), key: .columnIndex(index)))
21492149
}
@@ -2254,7 +2254,7 @@ private struct StatementRowImpl: RowImpl {
22542254

22552255
func hasNull(atUncheckedIndex index: Int) -> Bool {
22562256
// Avoid extracting values, because this modifies the SQLite statement.
2257-
return sqlite3_column_type(sqliteStatement, Int32(index)) == SQLITE_NULL
2257+
sqlite3_column_type(sqliteStatement, Int32(index)) == SQLITE_NULL
22582258
}
22592259

22602260
func databaseValue(atUncheckedIndex index: Int) -> DatabaseValue {

0 commit comments

Comments
 (0)