Timothy Pomeroy 6 年之前
父節點
當前提交
9391b22344
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      index.js

+ 2 - 3
index.js

@@ -116,8 +116,7 @@ const processWithHandbrake = (input, output, preset) => {
 };
 };
 
 
 const processFile = async (file) => {
 const processFile = async (file) => {
-  let adapter,
-    db,
+  let db,
     options,
     options,
     preset = 'Fast 1080p30',
     preset = 'Fast 1080p30',
     clean = {
     clean = {
@@ -209,7 +208,7 @@ const processFile = async (file) => {
 
 
 // cleanup removes from the db
 // cleanup removes from the db
 const cleanup = (file) => {
 const cleanup = (file) => {
-  let adapter, db, options;
+  let db;
   for (let i = 0, l = dirs.length; i < l; i++) {
   for (let i = 0, l = dirs.length; i < l; i++) {
     let dir = dirs[i]; // pointer to the dir
     let dir = dirs[i]; // pointer to the dir
     if (file && dir && file.indexOf(dir) > -1) {  // is this in this path?
     if (file && dir && file.indexOf(dir) > -1) {  // is this in this path?