Moved removeHidden function to the bottom of the file

This commit is contained in:
alexandercerutti
2018-07-24 16:30:01 +02:00
parent 751e799462
commit 514a15abd5

View File

@@ -6,17 +6,6 @@ const async = require("async");
const stream = require("stream"); const stream = require("stream");
const schema = require("./schema.js"); const schema = require("./schema.js");
/**
Apply a filter to arg0 to remove hidden files names (starting with dot)
@function removeHidden
@params {[String]} from - list of file names
@return {[String]}
*/
function removeHidden(from) {
return from.filter(e => e.charAt(0) !== ".");
}
class Pass { class Pass {
constructor(options) { constructor(options) {
this.passTypes = ["boardingPass", "eventTicket", "coupon", "generic", "storeCard"]; this.passTypes = ["boardingPass", "eventTicket", "coupon", "generic", "storeCard"];
@@ -464,4 +453,15 @@ class Pass {
} }
} }
/**
Apply a filter to arg0 to remove hidden files names (starting with dot)
@function removeHidden
@params {[String]} from - list of file names
@return {[String]}
*/
function removeHidden(from) {
return from.filter(e => e.charAt(0) !== ".");
}
module.exports = { Pass }; module.exports = { Pass };