diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-07 15:27:35 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-07 15:54:34 +0200 |
commit | fdbda9e3d6564ec908733c7019305f6a3c363a9f (patch) | |
tree | c596034156f167e7cfafe41c4a3fc6adda488a0d /scripts/danger/clean/cleaner.ts | |
parent | 04de542abd940f9d2ca213fba3c68580c6c9b78a (diff) | |
download | PeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.tar.gz PeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.tar.zst PeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.zip |
Add tests for npm run scripts
Diffstat (limited to 'scripts/danger/clean/cleaner.ts')
-rw-r--r-- | scripts/danger/clean/cleaner.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/danger/clean/cleaner.ts b/scripts/danger/clean/cleaner.ts index d80b8d323..428333528 100644 --- a/scripts/danger/clean/cleaner.ts +++ b/scripts/danger/clean/cleaner.ts | |||
@@ -16,7 +16,7 @@ db.init(true) | |||
16 | const storageDir = STORAGE[storage] | 16 | const storageDir = STORAGE[storage] |
17 | 17 | ||
18 | return new Promise((res, rej) => { | 18 | return new Promise((res, rej) => { |
19 | rimraf(storageDir, function (err) { | 19 | rimraf(storageDir, err => { |
20 | if (err) return rej(err) | 20 | if (err) return rej(err) |
21 | 21 | ||
22 | console.info('%s deleted.', storageDir) | 22 | console.info('%s deleted.', storageDir) |