Skip to content

Commit bdaac96

Browse files
committed
arrow functions
1 parent 9ac2eaa commit bdaac96

File tree

1 file changed

+2
-2
lines changed
  • workspaces/arborist/lib/arborist

1 file changed

+2
-2
lines changed

workspaces/arborist/lib/arborist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PackumentCache extends LRUCache {
5353
super({
5454
maxSize,
5555
maxEntrySize: maxSize * maxEntryFactor,
56-
sizeCalculation (p) {
56+
sizeCalculation: (p) => {
5757
// I saw some requests without a content length once but can't reproduce anymore
5858
// lru cache will error if sizeCalculation isnt a positive number
5959
if (p[sizeKey]) {
@@ -67,7 +67,7 @@ class PackumentCache extends LRUCache {
6767
// Some very wrong random guess at global average packument size
6868
return 1_000_000
6969
},
70-
dispose (v, k) {
70+
dispose: (v, k) => {
7171
this.#disposed.add(k)
7272
this.#log('dispose', k)
7373
},

0 commit comments

Comments
 (0)