Skip to content

Commit 01724ad

Browse files
committed
Remove unneeded "unowned"
Lazy blocks aren't actually retained, so there's no need to use "unowned" in these instances. Signed-off-by: Stephen Celis <[email protected]>
1 parent 8431ca3 commit 01724ad

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SQLite/Statement.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,10 @@ public final class Statement {
4141

4242
deinit { sqlite3_finalize(handle) }
4343

44-
public lazy var columnCount: Int = { [unowned self] in
45-
return Int(sqlite3_column_count(self.handle))
46-
}()
44+
public lazy var columnCount: Int = { Int(sqlite3_column_count(self.handle)) }()
4745

48-
public lazy var columnNames: [String] = { [unowned self] in
49-
return (0..<Int32(self.columnCount)).map { String.fromCString(sqlite3_column_name(self.handle, $0))! }
46+
public lazy var columnNames: [String] = {
47+
(0..<Int32(self.columnCount)).map { String.fromCString(sqlite3_column_name(self.handle, $0))! }
5048
}()
5149

5250
// MARK: - Binding

0 commit comments

Comments
 (0)