Remove debugging output
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm 2020-10-28 01:18:15 +01:00
parent cb67258ef3
commit ff468410ad
2 changed files with 0 additions and 4 deletions

View File

@ -191,7 +191,6 @@ class Match {
} }
} else { } else {
for (const rule of this.#rules) { for (const rule of this.#rules) {
console.log(rule.operation, operation);
if (rule.operation === operation) { if (rule.operation === operation) {
if (rule.test(localVars)) return true; if (rule.test(localVars)) return true;
} }
@ -283,8 +282,6 @@ export function getRuleRunner(service: ServiceStatement) {
const submatches = s_match.matches.map((sub) => createMatch(sub)); const submatches = s_match.matches.map((sub) => createMatch(sub));
const match = new Match(segments, rules, wildcard, submatches); const match = new Match(segments, rules, wildcard, submatches);
console.log("Adding match", segments, rules, wildcard, submatches);
return match; return match;
}; };

View File

@ -9,7 +9,6 @@ export default function compileRule(rule: string) {
let error: RuleError | undefined; let error: RuleError | undefined;
try { try {
const tokenised = tokenize(rule); const tokenised = tokenize(rule);
// console.log(tokenised);
const parsed = parse(tokenised); const parsed = parse(tokenised);
const dbservice = parsed.find((e) => e.name === "realtimedb"); const dbservice = parsed.find((e) => e.name === "realtimedb");