don't crash on empty file
This commit is contained in:
parent
b7fb63afc2
commit
aaccfb8d0e
1 changed files with 1 additions and 1 deletions
|
@ -159,5 +159,5 @@ pub fn get<'a>(root: &'a AstNode<'a>, mtype: MType) -> MFile {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.next()
|
.next()
|
||||||
.unwrap()
|
.unwrap_or_default()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue