fixed process when yml file exist in .git folder

* ignore when yml file exist in .git folder
This commit is contained in:
DustInDark committed 2022-03-30 21:02:14 +09:00
1 parent 425a629de7
commit 7c645010ee
1 file changed
+5
+5
View File
@@ -154,6 +154,11 @@ impl ParseYaml {
return io::Result::Ok(ret);
}
// ignore if yml file in .git folder.
if path.to_str().unwrap().contains("/.git/") {
return io::Result::Ok(ret);
}
// 個別のファイルの読み込みは即終了としない。
let read_content = self.read_file(path);
if read_content.is_err() {