소스 검색

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