Skip to content

Commit 2c9fd0c

Browse files
committed
Flag methods executed for side-effects to silence warnings
1 parent 4ed14ad commit 2c9fd0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SQLite/Core/Connection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public final class Connection {
216216
/// - Throws: `Result.Error` if query execution fails.
217217
///
218218
/// - Returns: The statement.
219-
public func run(_ statement: String, _ bindings: Binding?...) throws -> Statement {
219+
@discardableResult public func run(_ statement: String, _ bindings: Binding?...) throws -> Statement {
220220
return try run(statement, bindings)
221221
}
222222

@@ -231,7 +231,7 @@ public final class Connection {
231231
/// - Throws: `Result.Error` if query execution fails.
232232
///
233233
/// - Returns: The statement.
234-
public func run(_ statement: String, _ bindings: [Binding?]) throws -> Statement {
234+
@discardableResult public func run(_ statement: String, _ bindings: [Binding?]) throws -> Statement {
235235
return try prepare(statement).run(bindings)
236236
}
237237

@@ -246,7 +246,7 @@ public final class Connection {
246246
/// - Throws: `Result.Error` if query execution fails.
247247
///
248248
/// - Returns: The statement.
249-
public func run(_ statement: String, _ bindings: [String: Binding?]) throws -> Statement {
249+
@discardableResult public func run(_ statement: String, _ bindings: [String: Binding?]) throws -> Statement {
250250
return try prepare(statement).run(bindings)
251251
}
252252

0 commit comments

Comments
 (0)