[backport] run nimpretty on async

This commit is contained in:
narimiran 2019-09-27 10:50:16 +02:00
commit aa513d78e7
8 changed files with 61 additions and 57 deletions

View file

@ -488,7 +488,7 @@ proc setFileSize*(f: AsyncFile, length: int64) =
status = setFilePointer(f.fd.Handle, low, addr high, 0)
lastErr = osLastError()
if (status == INVALID_SET_FILE_POINTER and lastErr.int32 != NO_ERROR) or
(setEndOfFile(f.fd.Handle) == 0):
(setEndOfFile(f.fd.Handle) == 0):
raiseOSError(osLastError())
else:
# will truncate if Off is a 32-bit type!