From 0a568e3f363d8abcc60709562259328785291f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Miguel?= Date: Fri, 23 Mar 2018 14:58:20 +0000 Subject: [PATCH] (Optimization) Remove redundant filter call --- src/backends/github/implementation.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backends/github/implementation.js b/src/backends/github/implementation.js index b0607faf0415..92a5af598d47 100644 --- a/src/backends/github/implementation.js +++ b/src/backends/github/implementation.js @@ -93,7 +93,6 @@ export default class GitHub { getMedia() { return this.api.listFiles(this.config.get('media_folder')) - .then(files => files.filter(file => file.type === 'file')) .then(files => files.map(({ sha, name, size, download_url, path }) => { const url = new URL(download_url); if (url.pathname.match(/.svg$/)) {