summaryrefslogtreecommitdiff
path: root/src/nmtui/nmt-editor.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2022-03-28 13:51:44 +0200
committerLubomir Rintel <lkundrak@v3.sk>2022-03-28 13:51:44 +0200
commit9702310f25af4171d73a1e500714b2f8f8c575c6 (patch)
tree3d1cc192ae83cd67aeddc750195cd7ddf787ea66 /src/nmtui/nmt-editor.c
parent18b4ea7468dfa66e52db1a2cde44a4cb03f2f82d (diff)
downloadNetworkManager-lr/asserts.tar.gz
clients: bulk removal of g_assert*() statementslr/asserts
Assertions should be done in tests. If we detect an unexpected situation at runtime, we shall fail more gracefully than crashing right away.
Diffstat (limited to 'src/nmtui/nmt-editor.c')
-rw-r--r--src/nmtui/nmt-editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nmtui/nmt-editor.c b/src/nmtui/nmt-editor.c
index 8e6a760c1a..427ac0178b 100644
--- a/src/nmtui/nmt-editor.c
+++ b/src/nmtui/nmt-editor.c
@@ -377,7 +377,7 @@ nmt_editor_constructed(GObject *object)
else if (nm_connection_is_type(priv->edit_connection, NM_SETTING_WIREGUARD_SETTING_NAME))
page = nmt_page_wireguard_new(priv->edit_connection, deventry);
else
- g_assert_not_reached();
+ g_return_if_reached();
add_sections_for_page(editor, grid, page);
nmt_editor_grid_append(grid, NULL, nmt_newt_separator_new(), NULL);