提交 0a1d3f56 编写于 作者: B Ben S

Add guard to get_source_files

上级 c494c0cd
......@@ -69,6 +69,10 @@ impl<'a> File<'a> {
// without a .coffee.
pub fn get_source_files(&self) -> Vec<Path> {
if self.ext.is_none() {
return vec![];
}
let ext = self.ext.clone().unwrap();
match ext.as_slice() {
"class" => vec![self.path.with_extension("java")], // Java
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册