Skip to content

Commit

Permalink
typo in sizeCalculation non-function error message
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 30, 2022
1 parent 49b95f2 commit be4aef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class LRUCache {
throw new TypeError('cannot set sizeCalculation without setting maxSize')
}
if (typeof this.sizeCalculation !== 'function') {
throw new TypeError('sizeCalculating set to non-function')
throw new TypeError('sizeCalculation set to non-function')
}
}

Expand Down

0 comments on commit be4aef8

Please sign in to comment.