浏览代码

Remove leftover unused arguments parsing for external execution

Tobias Wolf 2 年之前
父节点
当前提交
e6b705be26
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      models/attachments.js

+ 0 - 8
models/attachments.js

@@ -162,14 +162,6 @@ if (Meteor.isServer) {
       }
 
       if (isValid && attachmentUploadExternalProgram) {
-        let args = { ...attachmentUploadExternalProgram.args };
-
-        for (let key in args) {
-          if (args[key] == "%file") {
-            args[key] = fileObj.path;
-          }
-        }
-
         Promise.await(asyncExec(attachmentUploadExternalProgram.replace("{file}", '"' + fileObj.path + '"')));
         isValid = fs.existsSync(fileObj.path);