소스 검색

remove try catch

yohei0125 4 년 전
부모
커밋
6d32211d70
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      packages/app/src/client/services/page-operation.ts

+ 1 - 6
packages/app/src/client/services/page-operation.ts

@@ -66,10 +66,5 @@ export const exportAsMarkdown = (pageId: string, revisionId: string, format: str
  * send request to fix broken paths caused by unexpected events such as server shutdown while renaming page paths
  */
 export const resumeRenameOperation = async(pageId: string): Promise<void> => {
-  try {
-    await apiv3Post('/pages/resume-rename', { pageId });
-  }
-  catch (err) {
-    throw err;
-  }
+  await apiv3Post('/pages/resume-rename', { pageId });
 };