Skip to content

Commit 91b1fe6

Browse files
committed
perf(helpers): remove isMediaUrl memoize
1 parent 04cb482 commit 91b1fe6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/metascraper-helpers/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,8 @@ const isImageUrl = createIsUrl(IMAGE)
222222

223223
const isPdfUrl = createIsUrl(PDF)
224224

225-
const isMediaUrl = memoizeOne(
226-
(url, opts) =>
227-
isImageUrl(url, opts) || isVideoUrl(url, opts) || isAudioUrl(url, opts)
228-
)
225+
const isMediaUrl = (url, opts) =>
226+
isImageUrl(url, opts) || isVideoUrl(url, opts) || isAudioUrl(url, opts)
229227

230228
const isMediaExtension = url =>
231229
isImageExtension(url) || isVideoExtension(url) || isAudioExtension(url)

0 commit comments

Comments
 (0)