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

fixed bug with assign to undeclared variable in strict mode #4

Merged
merged 1 commit into from
Apr 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tarantool-prometheus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function Histogram:collect()
labels[#labels+1] = {le="0"}
for i, bucket in ipairs(self.buckets) do
labels[#labels] = {"le", metric_to_string(bucket)}
str = prefix.."_bucket"..labels_to_string(labels)..
local str = prefix.."_bucket"..labels_to_string(labels)..
' '..metric_to_string(observation[i])
table.insert(result, str)
end
Expand Down