소스 검색

[misc] MongoManager: drop unused, potentially expensive default options

All call-sites specify an options object.
Jakob Ackermann 5 년 전
부모
커밋
1edc628454
1개의 변경된 파일과 0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 3
      services/docstore/app/js/MongoManager.js

+ 0 - 3
services/docstore/app/js/MongoManager.js

@@ -34,9 +34,6 @@ module.exports = MongoManager = {
   },
   },
 
 
   getProjectsDocs(project_id, options, filter, callback) {
   getProjectsDocs(project_id, options, filter, callback) {
-    if (options == null) {
-      options = { include_deleted: true }
-    }
     const query = { project_id: ObjectId(project_id.toString()) }
     const query = { project_id: ObjectId(project_id.toString()) }
     if (!options.include_deleted) {
     if (!options.include_deleted) {
       query.deleted = { $ne: true }
       query.deleted = { $ne: true }