Avoid return null if old or new file fails to load

This commit is contained in:
Alberto Fanjul 2021-08-29 08:37:19 +02:00
parent eb365abd82
commit 75e371dcc5

View File

@ -427,8 +427,6 @@ class Gitg.DiffViewFileRendererText : Gtk.SourceView, DiffSelectable, DiffViewFi
{
stderr.printf(@"ERROR: failed to load $(file.get_path()) for highlighting: $(e.message)\n");
}
return null;
}
return buffer;