mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +02:00
gio: Use g_task_return_error_literal() where we don't need formatting
This commit is contained in:
committed by
Philip Withnall
parent
7c71090723
commit
81068e5c00
@@ -561,9 +561,9 @@ can_reach_done (GObject *source,
|
||||
if (reachable)
|
||||
g_task_return_boolean (task, TRUE);
|
||||
else
|
||||
g_task_return_new_error (task,
|
||||
G_IO_ERROR, G_IO_ERROR_HOST_UNREACHABLE,
|
||||
"Can't reach host");
|
||||
g_task_return_new_error_literal (task,
|
||||
G_IO_ERROR, G_IO_ERROR_HOST_UNREACHABLE,
|
||||
"Can't reach host");
|
||||
|
||||
g_object_unref (task);
|
||||
}
|
||||
|
Reference in New Issue
Block a user