refactor: capitalize comments (#7188)

* refactor: capitalize comments

* revert...
This commit is contained in:
Joshua Chen 2022-04-17 16:39:11 +08:00 committed by GitHub
parent 200009008b
commit fa1ce230ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
99 changed files with 241 additions and 350 deletions

View file

@ -92,13 +92,8 @@ export function findFirstCategoryLink(
if (categoryLink) {
return categoryLink;
}
} else if (subItem.type === 'html') {
// skip
} else {
throw new Error(
`Unexpected category item type for ${JSON.stringify(subItem)}`,
);
}
// Could be "html" items
}
return undefined;
}
@ -271,7 +266,7 @@ export function useLayoutDoc(
const isDraft = versions
.flatMap((version) => version.draftIds)
.includes(docId);
// drafts should be silently filtered instead of throwing
// Drafts should be silently filtered instead of throwing
if (isDraft) {
return null;
}