2
0
Эх сурвалжийг харах

Removed unnecessary null check

Taichi Masuyama 3 жил өмнө
parent
commit
37accc3b84

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

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