From 1ee7ead1e64d64c4996608edbd56399bdbd5192d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Tue, 24 Nov 2020 16:57:12 +0800 Subject: [PATCH] chore: remove stale access to modifiedIndex_org (#2825) Since c5dcced1cf90e2ffa5b73583784fc9bd34706aac, modifiedIndex_org is only accessed in this place without any assignment. --- apisix/plugins/prometheus/exporter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apisix/plugins/prometheus/exporter.lua b/apisix/plugins/prometheus/exporter.lua index 35191992..45a79c5e 100644 --- a/apisix/plugins/prometheus/exporter.lua +++ b/apisix/plugins/prometheus/exporter.lua @@ -207,7 +207,7 @@ local function set_modify_index(key, items, items_ver, global_max_index) if items_ver and items then for _, item in ipairs(items) do if type(item) == "table" then - local modify_index = item.modifiedIndex_org or item.modifiedIndex + local modify_index = item.modifiedIndex if modify_index > max_idx then max_idx = modify_index end