소스 검색

Removed unnecessary null check

Taichi Masuyama 3 년 전
부모
커밋
37accc3b84
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      packages/app/src/components/PageAttachment.tsx

+ 0 - 4
packages/app/src/components/PageAttachment.tsx

@@ -11,10 +11,6 @@ import PaginationWrapper from './PaginationWrapper';
 
 // Utility
 const checkIfFileInUse = (markdown: string, attachment) => {
-  if (markdown == null) {
-    return false;
-  }
-
   return markdown.match(attachment._id);
 };