Minor optimization in win32 do_lstat
diff --git a/src/win32/posix_w32.c b/src/win32/posix_w32.c
index d0e366e..0efcaf5 100644
--- a/src/win32/posix_w32.c
+++ b/src/win32/posix_w32.c
@@ -121,10 +121,9 @@ static int do_lstat(
fbuf[flen] = L'\0';
if (GetFileAttributesExW(fbuf, GetFileExInfoStandard, &fdata)) {
- if (!(fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
+ if (!(fdata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
errno = ENOTDIR;
- break;
- }
+ break;
}
}
}