code convention

This commit is contained in:
Clément GOUIN
2019-06-20 10:49:51 +02:00
parent 07dd06a338
commit f9a2db38d2
6 changed files with 40 additions and 37 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ if (!fs.existsSync('data')) {
copy(path.join('sample_data','home'), 'data');
const pad0 = n => ('0' + n).substr(-2);
const pad0 = (n) =>('0' + n).substr(-2);
const datetime = new Date();
const dir = path.join('data', datetime.getFullYear().toString(), pad0(datetime.getMonth() + 1), pad0(datetime.getDate()));