ソースを参照

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);