瀏覽代碼

Removed unnecessary code

Taichi Masuyama 4 年之前
父節點
當前提交
23911b4c5f
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      packages/app/src/server/routes/page.js

+ 0 - 2
packages/app/src/server/routes/page.js

@@ -300,7 +300,6 @@ module.exports = function(crowi, app) {
     }
 
     if (page.isEmpty) {
-      req.isEmpty = true;
       req.pagePath = page.path;
       return next();
     }
@@ -365,7 +364,6 @@ module.exports = function(crowi, app) {
 
     // empty page
     if (page.isEmpty) {
-      req.isEmpty = true;
       req.pagePath = page.path;
       return next(); // to page.notFound
     }