Skip to content

Commit

Permalink
Fix propagating invalid error
Browse files Browse the repository at this point in the history
first_error is never used and doesn't seem needed.
  • Loading branch information
TingPing committed Sep 18, 2023
1 parent 98291c9 commit 515566e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/builder-source-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ download_data_uri (const char *url,
GError **error)
{
CURL *session;
g_autoptr(GError) first_error = NULL;
g_autoptr(GInputStream) input = NULL;
g_autoptr(GOutputStream) out = NULL;
g_autoptr(GUri) parsed = NULL;
Expand All @@ -356,10 +355,7 @@ download_data_uri (const char *url,
out = g_memory_output_stream_new_resizable ();

if (!builder_download_uri_buffer (parsed, NULL, session, out, NULL, 0, error))
{
g_propagate_error (error, g_steal_pointer (&first_error));
return NULL;
}

if (!g_output_stream_splice (out,
input,
Expand Down
2 changes: 1 addition & 1 deletion subprojects/debugedit
Submodule debugedit updated from 60ee63 to ae2721

0 comments on commit 515566e

Please sign in to comment.