Skip to content

Commit

Permalink
Remove ignore option from attachments-from-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed May 29, 2017
1 parent 380d2e8 commit efdd761
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/attachments-from-dir.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const fs = require('./sync-fs');

module.exports = (dir, ...ignore) => {
module.exports = dir => {
const attachments = {};
fs.readdir(dir)
.filter(name => !ignore || !ignore.includes(name))
.forEach(fileName => {
const filePath = `${dir}/${fileName}`;
const data = fs.readBinary(filePath);
Expand Down

0 comments on commit efdd761

Please sign in to comment.