cloud-setup: remove redundant check in Azure's _get_net_ifaces_list_cb()

This condition always true, because there is a check above.
This commit is contained in:
Thomas Haller 2021-04-20 13:46:29 +02:00
parent 70b7ad1a76
commit d3f07d5ca2
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -432,7 +432,7 @@ _get_net_ifaces_list_cb(GObject *source, GAsyncResult *result, gpointer user_dat
* extra NULL character after the buffer. */
((char *) line)[line_len] = '\0';
if (line[line_len - 1] == '/' && line_len != 0)
if (line[line_len - 1] == '/')
((char *) line)[--line_len] = '\0';
intern_iface_idx = _nm_utils_ascii_str_to_int64(line, 10, 0, G_MAXSSIZE, -1);