Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–43 unchanged (43 lines)
44 }
45
46 /// Executes the maintenance.
47 ///
48 private func startMaintenance() async {
49 do {
50 try NCManageDatabase.shared.forceCompactRealm()
51 } catch {
52 nkLog(tag: NCGlobal.shared.logTagDatabase, emoji: .error, message: "Realm compaction failed: \(error.localizedDescription)")
53 }
54
55 DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
56 onCompleted()
…lines 57–60 unchanged (4 lines)

After

…lines 1–43 unchanged (43 lines)
44 }
45
46 /// Executes the maintenance.
47 ///
48 private func startMaintenance() async {
49 do {
50 try NCManageDatabase.shared.compactRealm()
51 } catch {
52 nkLog(tag: NCGlobal.shared.logTagDatabase, emoji: .error, message: "Realm compaction failed: \(error.localizedDescription)")
53 }
54
55 DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
56 onCompleted()
…lines 57–60 unchanged (4 lines)

Before

source_file
comment "// SPDX-FileCopyrightText: Nextcloud GmbH"
comment "// SPDX-FileCopyrightText: 2025 Marino Faggiana"
comment "// SPDX-License-Identifier: GPL-3.0-or-later"
import_declaration
import "import"
identifier
simple_identifier "Foundation"
import_declaration
import "import"
identifier
simple_identifier "SwiftUI"
import_declaration
import "import"
identifier
simple_identifier "RealmSwift"
import_declaration
import "import"
identifier
simple_identifier "NextcloudKit"
comment "/// A modal SwiftUI view responsible for maintenance databas"...
class_declaration
struct "struct"
type_identifier "Maintenance"
: ":"
inheritance_specifier
user_type
type_identifier "View"
class_body
{ "{"
property_declaration
value_binding_pattern
let "let"
pattern
simple_identifier "onCompleted"
type_annotation
: ":"
function_type
tuple_type
( "("
) ")"
-> "->"
user_type
type_identifier "Void"
property_declaration (+276 nodes collapsed)
comment "/// Executes the maintenance."
comment "///"
function_declaration
modifiers
visibility_modifier
private "private"
func "func"
simple_identifier "startMaintenance"
( "("
) ")"
async "async"
function_body
{ "{"
statements
do_statement
do "do"
{ "{"
statements
try_expression
try_operator
try "try"
call_expression
navigation_expression
navigation_expression
simple_identifier "NCManageDatabase"
navigation_suffix
. "."
simple_identifier "shared"
navigation_suffix
. "."
simple_identifier "forceCompactRealm"
call_suffix
value_arguments
( "("
) ")"
} "}"
catch_block (+49 nodes collapsed)
call_expression (+39 nodes collapsed)
} "}"
} "}"

After

source_file
comment "// SPDX-FileCopyrightText: Nextcloud GmbH"
comment "// SPDX-FileCopyrightText: 2025 Marino Faggiana"
comment "// SPDX-License-Identifier: GPL-3.0-or-later"
import_declaration
import "import"
identifier
simple_identifier "Foundation"
import_declaration
import "import"
identifier
simple_identifier "SwiftUI"
import_declaration
import "import"
identifier
simple_identifier "RealmSwift"
import_declaration
import "import"
identifier
simple_identifier "NextcloudKit"
comment "/// A modal SwiftUI view responsible for maintenance databas"...
class_declaration
struct "struct"
type_identifier "Maintenance"
: ":"
inheritance_specifier
user_type
type_identifier "View"
class_body
{ "{"
property_declaration
value_binding_pattern
let "let"
pattern
simple_identifier "onCompleted"
type_annotation
: ":"
function_type
tuple_type
( "("
) ")"
-> "->"
user_type
type_identifier "Void"
property_declaration (+276 nodes collapsed)
comment "/// Executes the maintenance."
comment "///"
function_declaration
modifiers
visibility_modifier
private "private"
func "func"
simple_identifier "startMaintenance"
( "("
) ")"
async "async"
function_body
{ "{"
statements
do_statement
do "do"
{ "{"
statements
try_expression
try_operator
try "try"
call_expression
navigation_expression
navigation_expression
simple_identifier "NCManageDatabase"
navigation_suffix
. "."
simple_identifier "shared"
navigation_suffix
. "."
simple_identifier "compactRealm"
call_suffix
value_arguments
( "("
) ")"
} "}"
catch_block (+49 nodes collapsed)
call_expression (+39 nodes collapsed)
} "}"
} "}"