Skip to content
Snippets Groups Projects
Verified Commit 10890aab authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Fix build (again)

parent 1f7f3a56
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"moment": "^2.12.0", "moment": "^2.12.0",
"node-fs-extra": "^0.8.1", "node-fs-extra": "^0.8.1",
"node-sass": "^3.4.2", "node-sass": "^3.4.2",
"nodegit": "^0.11.7", "nodegit": ">=0.11.7",
"nunjucks": "^2.3.0", "nunjucks": "^2.3.0",
"nunjucks-date-filter": "^0.1.1", "nunjucks-date-filter": "^0.1.1",
"sqlite-parser": "^0.14.3", "sqlite-parser": "^0.14.3",
......
...@@ -12,9 +12,6 @@ var mkdirp = require('mkdirp'); ...@@ -12,9 +12,6 @@ var mkdirp = require('mkdirp');
var path = require('path'); var path = require('path');
module.exports = function(file, targetDir, width, height) { module.exports = function(file, targetDir, width, height) {
return path.basename(file);
}
var rem = function(file, targetDir, width, height) {
if(lwip && (width || height)) { if(lwip && (width || height)) {
let tmp = path.basename(file).split('.'); let tmp = path.basename(file).split('.');
tmp.splice(-1,1); tmp.splice(-1,1);
...@@ -34,7 +31,7 @@ var rem = function(file, targetDir, width, height) { ...@@ -34,7 +31,7 @@ var rem = function(file, targetDir, width, height) {
.writeFile(targetFile, function(err) { .writeFile(targetFile, function(err) {
if(err) console.log(err); if(err) console.log(err);
}); });
} })
} }
if(err) return console.log(err); if(err) return console.log(err);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment