From b14899fea3de8ac925678afd1abb20cad74a6aab Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Mon, 26 Jan 2009 12:52:56 +0100 Subject: [PATCH] update_view: remove an unneeded goto --- tig.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tig.c b/tig.c index ec7f267..48f1a1e 100644 --- a/tig.c +++ b/tig.c @@ -2783,8 +2783,11 @@ update_view(struct view *view) line = out_buffer; } - if (!view->ops->read(view, line)) - goto alloc_error; + if (!view->ops->read(view, line)) { + report("Allocation failure"); + end_update(view, TRUE); + return FALSE; + } } { @@ -2826,11 +2829,6 @@ update_view(struct view *view) * commit reference in view->ref it'll be available here. */ update_view_title(view); return TRUE; - -alloc_error: - report("Allocation failure"); - end_update(view, TRUE); - return FALSE; } static struct line * -- 2.32.0.93.g670b81a890