Skip to content

Commit

Permalink
(Optimization) Remove redundant filter call
Browse files Browse the repository at this point in the history
  • Loading branch information
Quicksaver authored and erquhart committed Mar 27, 2018
1 parent 8e2fefc commit 2d89cc7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/backends/github/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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$/)) {
Expand Down

0 comments on commit 2d89cc7

Please sign in to comment.