Skip to content

Commit 7f7ecb1

Browse files
committed
Fix SwiftLint errors in SQL Preview files
1 parent bae74da commit 7f7ecb1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

TablePro/Core/Utilities/SQLParameterInliner.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import Foundation
1010

1111
struct SQLParameterInliner {
12-
1312
// MARK: - Public API
1413

1514
/// Inlines parameter values into a parameterized SQL string for display purposes.
@@ -102,7 +101,7 @@ struct SQLParameterInliner {
102101
inString = true
103102
previousWasQuote = false
104103
}
105-
result.append(Character(UnicodeScalar(ch)!))
104+
result += nsSQL.substring(with: NSRange(location: i, length: 1))
106105
i += 1
107106
} else {
108107
if previousWasQuote {
@@ -129,11 +128,11 @@ struct SQLParameterInliner {
129128
result += formatValue(parameters[paramNumber - 1])
130129
i = numEnd
131130
} else {
132-
result.append(Character(UnicodeScalar(ch)!))
131+
result += nsSQL.substring(with: NSRange(location: i, length: 1))
133132
i += 1
134133
}
135134
} else {
136-
result.append(Character(UnicodeScalar(ch)!))
135+
result += nsSQL.substring(with: NSRange(location: i, length: 1))
137136
i += 1
138137
}
139138
}

TablePro/Views/Main/Extensions/MainContentCoordinator+SQLPreview.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import Foundation
99

1010
extension MainContentCoordinator {
11-
1211
// MARK: - SQL Preview
1312

1413
/// Routes SQL preview request to the appropriate handler based on current tab mode

0 commit comments

Comments
 (0)