Skip to content

Commit 9d83e2f

Browse files
committed
Remove unnecessary abstraction
Signed-off-by: Stephen Celis <stephen@stephencelis.com>
1 parent 6abd3f4 commit 9d83e2f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

SQLite/Database.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,13 @@ public final class Database {
289289

290290
private var savepointStack = [String]()
291291

292-
private var uuid: String { return NSUUID().UUIDString }
293-
294292
/// Starts a new transaction with the given savepoint name.
295293
///
296294
/// :param: savepointName A unique identifier for the savepoint.
297295
///
298296
/// :returns: The SAVEPOINT statement.
299297
public func savepoint(_ savepointName: String? = nil) -> Statement {
300-
let name = savepointName ?? uuid
298+
let name = savepointName ?? NSUUID().UUIDString
301299
savepointStack.append(name)
302300
return run("SAVEPOINT \(quote(literal: name))")
303301
}

0 commit comments

Comments
 (0)