Remove useless code

This commit is contained in:
Gwendal Roué committed 2019-12-03 19:17:35 +01:00
1 parent e4073cbe9a
commit bbf8e773f8
1 file changed
+1 -5
+1 -5
View File
@@ -221,11 +221,7 @@ extension Database {
extension Database {
func executeUpdateStatement(_ statement: UpdateStatement) throws {
// In aborted transaction, forbid all statements but statements that
// manage transactions.
if statement.transactionEffect == nil {
try checkForAbortedTransaction(sql: statement.sql, arguments: statement.arguments)
}
try checkForAbortedTransaction(sql: statement.sql, arguments: statement.arguments)
try checkForLockPrevention(from: statement)
let authorizer = observationBroker.updateStatementWillExecute(statement)