[xtro] 'raw' files might not exist. (#6191)

If we just fixed all the entries in the corresponding '*.ignore' file, there
won't be a '*.raw' file.
This commit is contained in:
Rolf Bjarne Kvinge 2019-06-01 16:50:11 -07:00 коммит произвёл Sebastien Pouliot
Родитель 0124e054f8
Коммит 17d73975c8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -220,7 +220,7 @@ namespace Extrospection {
if (!shortname.Contains ("-"))
continue;
var rawfile = Path.ChangeExtension (file, ".raw");
var raws = new List<string> (File.ReadAllLines (rawfile));
var raws = new List<string> (File.Exists (rawfile) ? File.ReadAllLines (rawfile) : Array.Empty<string> ());
var failures = new List<string> ();
var lines = File.ReadAllLines (file);
foreach (var entry in lines) {