[gitg/highlight] Avoid return null if old or new file fails to load
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/highlight] Avoid return null if old or new file fails to load
- Date: Sun, 29 Aug 2021 06:43:08 +0000 (UTC)
commit 75e371dcc5eb613ee28fa7152aefb275ffe6bcfe
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Sun Aug 29 08:37:19 2021 +0200
Avoid return null if old or new file fails to load
libgitg/gitg-diff-view-file-renderer-text.vala | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/libgitg/gitg-diff-view-file-renderer-text.vala b/libgitg/gitg-diff-view-file-renderer-text.vala
index cabbca9a..6ef2a984 100644
--- a/libgitg/gitg-diff-view-file-renderer-text.vala
+++ b/libgitg/gitg-diff-view-file-renderer-text.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]