Skip to content

Commit 8aa303f

Browse files
committed
Fix bug in scope variable handling
1 parent ba31bbc commit 8aa303f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prometheus/scope.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function Scope:addVariable(name, token)
8585
logger:error(string.format("A variable with the name \"%s\" was already defined, you should have no variables starting with \"%s\"", name, config.IdentPrefix));
8686
end
8787

88-
return self.variablesLookup[name];
88+
--return self.variablesLookup[name];
8989
end
9090

9191
table.insert(self.variables, name);
@@ -112,7 +112,7 @@ function Scope:addDisabledVariable(name, token)
112112
logger:warn(string.format("a variable with the name \"%s\" was already defined", name));
113113
end
114114

115-
return self.variablesLookup[name];
115+
--return self.variablesLookup[name];
116116
end
117117

118118
table.insert(self.variables, name);

0 commit comments

Comments
 (0)