Skip to content

Commit 336a577

Browse files
committedJan 31, 2024
one more lint warning
1 parent a7c14b5 commit 336a577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/library/localization_developer.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ function localization_developer.create_localized_base_table()
3636
file_path = client.encode_with_client_codepage(file_path)
3737
local file = io.open(file_path, "r")
3838
if file then
39-
local file_content = file:read("all")
4039
local function extract_strings(file_content)
4140
local i = 1
4241
local length = #file_content
@@ -75,6 +74,7 @@ function localization_developer.create_localized_base_table()
7574
return nil
7675
end
7776
end
77+
local file_content = file:read("all")
7878
for found_string in extract_strings(file_content) do
7979
retval[found_string] = found_string
8080
end

0 commit comments

Comments
 (0)