Skip to content

Commit 3ecb5c5

Browse files
committed
Remove compiler warning in demo app
1 parent 84d25df commit 3ecb5c5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Documentation/DemoApps/GRDBDemo/GRDBDemo/Database/AppDatabase.swift

+5-8
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,15 @@ extension AppDatabase {
6767

6868
/// Returns a database configuration suited for `AppDatabase`.
6969
///
70-
/// SQL statements are logged if the `SQL_TRACE` environment variable
71-
/// is set.
72-
///
73-
/// - parameter base: A base configuration.
74-
static func makeConfiguration(_ base: Configuration = Configuration()) -> Configuration {
75-
var config = base
76-
70+
/// - parameter config: A base configuration.
71+
static func makeConfiguration(_ config: Configuration = Configuration()) -> Configuration {
72+
// var config = config
73+
//
7774
// Add custom SQL functions or collations, if needed:
7875
// config.prepareDatabase { db in
7976
// db.add(function: ...)
8077
// }
81-
78+
//
8279
// Uncomment for enabling SQL logging if the `SQL_TRACE` environment variable is set.
8380
// See <https://swiftpackageindex.com/groue/grdb.swift/documentation/grdb/database/trace(options:_:)>
8481
// if ProcessInfo.processInfo.environment["SQL_TRACE"] != nil {

0 commit comments

Comments
 (0)