@@ -1285,7 +1285,7 @@ extension Row {
1285
1285
throws -> [ Row ]
1286
1286
{
1287
1287
// 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 ( ) } )
1289
1289
}
1290
1290
1291
1291
/// Returns a set of rows fetched from a prepared statement.
@@ -1306,7 +1306,7 @@ extension Row {
1306
1306
throws -> Set < Row >
1307
1307
{
1308
1308
// 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 ( ) } )
1310
1310
}
1311
1311
1312
1312
/// Returns a single row fetched from a prepared statement.
@@ -2089,27 +2089,27 @@ protocol RowImpl {
2089
2089
extension RowImpl {
2090
2090
func copiedRow( _ row: Row ) -> Row {
2091
2091
// unless customized, assume unsafe and unadapted row
2092
- return Row ( impl: ArrayRowImpl ( columns: Array ( row) ) )
2092
+ Row ( impl: ArrayRowImpl ( columns: Array ( row) ) )
2093
2093
}
2094
2094
2095
2095
func unscopedRow( _ row: Row ) -> Row {
2096
2096
// unless customized, assume unadapted row (see AdaptedRowImpl for customization)
2097
- return row
2097
+ row
2098
2098
}
2099
2099
2100
2100
func unadaptedRow( _ row: Row ) -> Row {
2101
2101
// unless customized, assume unadapted row (see AdaptedRowImpl for customization)
2102
- return row
2102
+ row
2103
2103
}
2104
2104
2105
2105
func scopes( prefetchedRows: Row . PrefetchedRowsView ) -> Row . ScopesView {
2106
2106
// unless customized, assume unuscoped row (see AdaptedRowImpl for customization)
2107
- return Row . ScopesView ( )
2107
+ Row . ScopesView ( )
2108
2108
}
2109
2109
2110
2110
func hasNull( atUncheckedIndex index: Int ) -> Bool {
2111
2111
// unless customized, use slow check (see StatementRowImpl and AdaptedRowImpl for customization)
2112
- return databaseValue ( atUncheckedIndex: index) . isNull
2112
+ databaseValue ( atUncheckedIndex: index) . isNull
2113
2113
}
2114
2114
2115
2115
func fastDecode< Value: DatabaseValueConvertible & StatementColumnConvertible > (
@@ -2118,7 +2118,7 @@ extension RowImpl {
2118
2118
throws -> Value
2119
2119
{
2120
2120
// unless customized, use slow decoding (see StatementRowImpl and AdaptedRowImpl for customization)
2121
- return try Value . decode (
2121
+ try Value . decode (
2122
2122
fromDatabaseValue: databaseValue ( atUncheckedIndex: index) ,
2123
2123
context: RowDecodingContext ( row: Row ( impl: self ) , key: . columnIndex( index) ) )
2124
2124
}
@@ -2129,21 +2129,21 @@ extension RowImpl {
2129
2129
throws -> Value ?
2130
2130
{
2131
2131
// unless customized, use slow decoding (see StatementRowImpl and AdaptedRowImpl for customization)
2132
- return try Value . decodeIfPresent (
2132
+ try Value . decodeIfPresent (
2133
2133
fromDatabaseValue: databaseValue ( atUncheckedIndex: index) ,
2134
2134
context: RowDecodingContext ( row: Row ( impl: self ) , key: . columnIndex( index) ) )
2135
2135
}
2136
2136
2137
2137
func fastDecodeDataNoCopy( atUncheckedIndex index: Int ) throws -> Data {
2138
2138
// unless customized, copy data (see StatementRowImpl and AdaptedRowImpl for customization)
2139
- return try Data . decode (
2139
+ try Data . decode (
2140
2140
fromDatabaseValue: databaseValue ( atUncheckedIndex: index) ,
2141
2141
context: RowDecodingContext ( row: Row ( impl: self ) , key: . columnIndex( index) ) )
2142
2142
}
2143
2143
2144
2144
func fastDecodeDataNoCopyIfPresent( atUncheckedIndex index: Int ) throws -> Data ? {
2145
2145
// unless customized, copy data (see StatementRowImpl and AdaptedRowImpl for customization)
2146
- return try Data . decodeIfPresent (
2146
+ try Data . decodeIfPresent (
2147
2147
fromDatabaseValue: databaseValue ( atUncheckedIndex: index) ,
2148
2148
context: RowDecodingContext ( row: Row ( impl: self ) , key: . columnIndex( index) ) )
2149
2149
}
@@ -2254,7 +2254,7 @@ private struct StatementRowImpl: RowImpl {
2254
2254
2255
2255
func hasNull( atUncheckedIndex index: Int ) -> Bool {
2256
2256
// 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
2258
2258
}
2259
2259
2260
2260
func databaseValue( atUncheckedIndex index: Int ) -> DatabaseValue {
0 commit comments