Skip to content

Commit 00ad0bb

Browse files
committed
[lit-test-helper] Fix a 'variable was never mutated' warning, NFC
1 parent b769451 commit 00ad0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/lit-test-helper/ClassifiedSyntaxTreePrinter.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ extension SyntaxClassification {
4141
enum ClassifiedSyntaxTreePrinter {
4242
static func print(_ tree: Syntax) -> String {
4343
var result = ""
44-
var sourceText = tree.description
44+
let sourceText = tree.description
4545
let utf8 = sourceText.utf8
4646
var skipCheckLine = false
4747
for classify in tree.classifications {

0 commit comments

Comments
 (0)