Skip to content

Commit 8e57177

Browse files
committed
Refactor .gitignore and clean up executor.js and tokenizer.js
1 parent 2813508 commit 8e57177

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ node_modules/
55
coverage/
66

77
# Husky generated scripts
8-
.husky/_/
8+
.husky
9+
10+
# Build output
11+
dist

src/function/executor.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export function createFunctionExecutor(fnRegistry, options = {}) {
2626
throw new Error(`Arguments for "${name}" must be an array`);
2727
}
2828

29-
/* ----- EXECUTE ----- */
3029
try {
3130
return fn(...args);
3231
} catch (err) {
@@ -35,8 +34,11 @@ export function createFunctionExecutor(fnRegistry, options = {}) {
3534
}
3635
}
3736

38-
/* ================= SAFE EXECUTE ================= */
39-
37+
/**
38+
* @param {any} name
39+
* @param {any} args
40+
* @param {any} context
41+
*/
4042
function safeExecute(name, args = [], context) {
4143
try {
4244
return execute(name, args, context);

src/parser/tokenizer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ export function tokenize(expr, context = {}) {
281281
continue;
282282
}
283283

284-
// operators
285284
if (operators.includes(char)) {
286285
flushCurrent(char, i);
287286

0 commit comments

Comments
 (0)