Commit c2dc5d3b authored by Thomas Haller's avatar Thomas Haller

settings: fix wrong assertions for calling nm_settings_connection_replace_settings()

parent 73703c4d
......@@ -342,8 +342,9 @@ connection_new_or_changed (SCPluginIfcfg *self,
FALSE, /* don't set Unsaved */
&error)) {
/* Shouldn't ever get here as 'new' was verified by the reader already */
g_assert_no_error (error);
g_assert_not_reached ();
}
g_assert_no_error (error);
}
g_object_unref (new);
......
......@@ -315,8 +315,9 @@ reload_connections (NMSystemConfigInterface *config)
FALSE, /* don't set Unsaved */
&error)) {
/* Shouldn't ever get here as 'new' was verified by the reader already */
g_assert_no_error (error);
g_assert_not_reached ();
}
g_assert_no_error (error);
nm_log_info (LOGD_SETTINGS, "Connection %s updated",
nm_connection_get_id (NM_CONNECTION (new)));
}
......
......@@ -128,8 +128,9 @@ update_connection (SCPluginKeyfile *self,
FALSE, /* don't set Unsaved */
&error)) {
/* Shouldn't ever get here as 'new' was verified by the reader already */
g_assert_no_error (error);
g_assert_not_reached ();
}
g_assert_no_error (error);
}
g_object_unref (tmp);
}
......@@ -183,8 +184,9 @@ new_connection (SCPluginKeyfile *self,
FALSE, /* don't set Unsaved */
&error)) {
/* Shouldn't ever get here as 'tmp' was verified by the reader already */
g_assert_no_error (error);
g_assert_not_reached ();
}
g_assert_no_error (error);
g_object_unref (tmp);
if (out_old_path)
*out_old_path = g_strdup (nm_settings_connection_get_filename (connection));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment