mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-26 21:40:41 +01:00
libnm: remove dead code in nm_team_setting_config_get()
I was aware that this code is not reachable. But for consistency, it seems better to be explict about it (to avoid future bugs when refactoring). Anyway, Coverity complains about it. So assert instead.
This commit is contained in:
parent
88bcf87ad9
commit
643bc4ca22
1 changed files with 2 additions and 2 deletions
|
|
@ -1587,8 +1587,8 @@ nm_team_setting_config_get (const NMTeamSetting *self)
|
|||
|| _team_setting_has_fields_any_v (self, attr_lst_runner_pt3, G_N_ELEMENTS (attr_lst_runner_pt3))) {
|
||||
gboolean list_is_empty2 = TRUE;
|
||||
|
||||
if (!list_is_empty)
|
||||
nm_json_aux_gstr_append_delimiter (gstr);
|
||||
nm_assert (list_is_empty);
|
||||
|
||||
nm_json_aux_gstr_append_obj_name (gstr, "runner", '{');
|
||||
|
||||
if (_team_setting_fields_to_json_maybe (self, gstr, !list_is_empty2, attr_lst_runner_pt1, G_N_ELEMENTS (attr_lst_runner_pt1)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue