mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-19 04:30:37 +01:00
keyfile: simplify g_return() checks for _internal_write_connection()
This commit is contained in:
parent
e14ea6818a
commit
fbd30c7dd2
1 changed files with 2 additions and 5 deletions
|
|
@ -813,13 +813,10 @@ _internal_write_connection (NMConnection *connection,
|
|||
WriteInfo info;
|
||||
GError *local_err = NULL;
|
||||
|
||||
if (out_path)
|
||||
g_return_val_if_fail (*out_path == NULL, FALSE);
|
||||
g_return_val_if_fail (!out_path || !*out_path, FALSE);
|
||||
|
||||
if (!nm_connection_verify (connection, error)) {
|
||||
if (!nm_connection_verify (connection, error))
|
||||
g_return_val_if_reached (FALSE);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
id = nm_connection_get_id (connection);
|
||||
g_assert (id && *id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue