Remove usage of do in core library

This commit is contained in:
gingerBill
2020-09-23 17:17:14 +01:00
parent 4844dd4d96
commit fc4fdd588e
45 changed files with 960 additions and 520 deletions
+3 -3
View File
@@ -60,21 +60,21 @@ current :: proc(allocator := context.temp_allocator) -> string {
exists :: proc(path: string) -> bool {
if _, ok := os.stat(path); ok {
if _, err := os.stat(path); err != 0 {
return true;
}
return false;
}
is_dir :: proc(path: string) -> bool {
if stat, ok := os.stat(path); ok {
if stat, err := os.stat(path); err != 0 {
return os.S_ISDIR(u32(stat.mode));
}
return false;
}
is_file :: proc(path: string) -> bool {
if stat, ok := os.stat(path); ok {
if stat, err := os.stat(path); err != 0 {
return os.S_ISREG(u32(stat.mode));
}
return false;