Skip to content

Commit bfa847b

Browse files
committed
fix: resolve swiftlint strict violations
- Fix modifier order: nonisolated before private in SQLFileParser - Remove explicit return in single-expression closure in ImportDialog
1 parent 096bb8d commit bfa847b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TablePro/Core/Utilities/SQLFileParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class SQLFileParser: Sendable {
2929

3030
/// Characters that can start multi-character sequences (comments, escapes)
3131
/// and must not be processed at chunk boundaries without a lookahead character.
32-
private nonisolated static func isMultiCharSequenceStart(_ char: Character) -> Bool {
32+
nonisolated private static func isMultiCharSequenceStart(_ char: Character) -> Bool {
3333
char == "-" || char == "/" || char == "\\" || char == "*"
3434
}
3535

TablePro/Views/Import/ImportDialog.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ struct ImportDialog: View {
359359
let encoding = config.encoding
360360
let parser = SQLFileParser()
361361
let count = try await Task.detached {
362-
return try await parser.countStatements(url: url, encoding: encoding)
362+
try await parser.countStatements(url: url, encoding: encoding)
363363
}.value
364364
statementCount = count
365365
} catch {

0 commit comments

Comments
 (0)