xcopy: Avoid an empty if-block.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2020-10-21 01:02:39 +02:00 committed by Alexandre Julliard
parent 9834492d2f
commit 7bbd46ba3f
1 changed files with 5 additions and 10 deletions

View File

@ -526,16 +526,11 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec,
/* Output a status message */
if (!skipFile) {
if (flags & OPT_QUIET) {
/* Skip message */
} else if (flags & OPT_FULL) {
const WCHAR infostr[] = {'%', '1', ' ', '-', '>', ' ',
'%', '2', '\n', 0};
XCOPY_wprintf(infostr, copyFrom, copyTo);
} else {
const WCHAR infostr[] = {'%', '1', '\n', 0};
XCOPY_wprintf(infostr, copyFrom);
if (!(flags & OPT_QUIET)) {
if (flags & OPT_FULL)
XCOPY_wprintf(L"%1 -> %2\n", copyFrom, copyTo);
else
XCOPY_wprintf(L"%1\n", copyFrom);
}
/* If allowing overwriting of read only files, remove any