Minor optimisation in "ts fetch"

This commit is contained in:
prpr 2024-03-10 13:59:21 +00:00
parent 5a1b0fe2b2
commit 81940fa4a8
1 changed files with 1 additions and 3 deletions

View File

@ -261,9 +261,7 @@ proc {ts fetch} {file {checked 0}} {
if {!$checked} {
if {[file extension $file] ne ".ts"} { return 0 }
if {![file exists "[file rootname $file].hmt"]} { return 0 }
}
if {[file extension $file] ne ".ts"} {
} elseif {[file extension $file] ne ".ts"} {
set file "[file rootname $file].ts"
}