Skip to content

Commit f1786f4

Browse files
AlexDenisovcriemen
andauthored
Apply suggestions from code review
Co-authored-by: Cornelius Riemenschneider <cornelius@github.com>
1 parent 97c38d9 commit f1786f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/tools/tracing-config.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function RegisterExtractorPack(id)
1414

1515
-- removes upsupported CLI arg including the following how_many args
1616
function strip_unsupported_arg(args, arg, how_many)
17-
index = indexOf(args, arg)
17+
local index = indexOf(args, arg)
1818
if index then
1919
table.remove(args, index)
2020
while (how_many > 0)
@@ -37,7 +37,7 @@ function RegisterExtractorPack(id)
3737
-- without a proper -resource-dir compiler-specific headers cannot be found which leads to
3838
-- broken extraction
3939
function insert_resource_dir_if_needed(compilerPath, args)
40-
resource_dir_index = indexOf(args, '-resource-dir')
40+
local resource_dir_index = indexOf(args, '-resource-dir')
4141
if resource_dir_index then
4242
return
4343
end

0 commit comments

Comments
 (0)