Skip to content

Commit 1bddae7

Browse files
committed
Clean up unnecessary code
1 parent 1f277a2 commit 1bddae7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/build.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const evaluate = (h, current, fields, args) => {
2626
}
2727
else if (current[i]) {
2828
// code === CHILD_RECURSE
29+
// eslint-disable-next-line prefer-spread
2930
args.push(h.apply(null, evaluate(h, value, fields, ['', null])));
3031
}
3132
else {

src/index.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ import { build, evaluate } from './build.mjs';
1515

1616
const CACHE = {};
1717

18-
export default function html() {
19-
// eslint-disable-next-line prefer-rest-params
20-
const statics = arguments[0];
21-
18+
export default function html(statics) {
2219
let key = '.';
2320
for (let i=0; i<statics.length; i++) {
2421
key += statics[i].length + ',' + statics[i];

0 commit comments

Comments
 (0)