mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 17:24:01 -05:00
Add conditional operator before checking length (#16180)
* add optional op to sections * remove check for undefined
This commit is contained in:
@@ -30,7 +30,7 @@ export interface quickPickResults {
|
||||
const allowedFileExtensions: string[] = [FileExtension.Markdown, FileExtension.Notebook];
|
||||
|
||||
export function hasSections(node: JupyterBookSection): boolean {
|
||||
return node.sections !== undefined && node.sections.length > 0;
|
||||
return node.sections?.length > 0;
|
||||
}
|
||||
|
||||
export class BookTocManager implements IBookTocManager {
|
||||
|
||||
Reference in New Issue
Block a user