Explorar el Código

Removed unnecessary null check

Taichi Masuyama hace 3 años
padre
commit
37accc3b84
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  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);
 };