Преглед изворни кода

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);
 };