mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
esx: Unindent unnecessary conditional branch
The positive branch can just return and the huge negative part does not need to be indented an extra level. Best viewed with `-w`. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
6472403c20
commit
697a33b3b3
@ -143,9 +143,10 @@ esxParseVMXFileName(const char *fileName, void *opaque)
|
||||
|
||||
if (!strchr(fileName, '/') && !strchr(fileName, '\\')) {
|
||||
/* Plain file name, use same directory as for the .vmx file */
|
||||
result = g_strdup_printf("%s/%s", data->datastorePathWithoutFileName,
|
||||
return g_strdup_printf("%s/%s", data->datastorePathWithoutFileName,
|
||||
fileName);
|
||||
} else {
|
||||
}
|
||||
|
||||
if (esxVI_String_AppendValueToList(&propertyNameList,
|
||||
"summary.name") < 0 ||
|
||||
esxVI_LookupDatastoreList(data->ctx, propertyNameList,
|
||||
@ -237,7 +238,6 @@ esxParseVMXFileName(const char *fileName, void *opaque)
|
||||
_("Could not handle file name '%s'"), fileName);
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
cleanup:
|
||||
esxVI_String_Free(&propertyNameList);
|
||||
|
Loading…
x
Reference in New Issue
Block a user