Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit f295bbf

Browse files
author
Konstantin Nazarov
authored
Merge pull request #4 from RepentantGopher/master
fixed bug with assign to undeclared variable in strict mode
2 parents 0654304 + 6a64aa1 commit f295bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tarantool-prometheus.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ function Histogram:collect()
318318
labels[#labels+1] = {le="0"}
319319
for i, bucket in ipairs(self.buckets) do
320320
labels[#labels] = {"le", metric_to_string(bucket)}
321-
str = prefix.."_bucket"..labels_to_string(labels)..
321+
local str = prefix.."_bucket"..labels_to_string(labels)..
322322
' '..metric_to_string(observation[i])
323323
table.insert(result, str)
324324
end

0 commit comments

Comments
 (0)