Explicitly return false

This commit is contained in:
def
2016-03-18 19:09:27 +01:00
parent d5c332ffa8
commit dfba0bdcaf

View File

@@ -296,7 +296,7 @@ proc open(f: var File, filename: string,
var res: Stat
if fstat(getFileHandle(f2), res) >= 0'i32 and S_ISDIR(res.st_mode):
close(f2)
return
return false
result = true
f = cast[File](p)
if bufSize > 0 and bufSize <= high(cint).int: