Remove return after unreachable
This commit is contained in:
1 parent
59a0bbb385
commit
a89633e3ed
2 files changed
-2
No files matched your search
@@ -416,7 +416,6 @@ get_current_directory :: proc() -> string {
|
|||||||
resize(&buf, len(buf)+page_size);
|
resize(&buf, len(buf)+page_size);
|
||||||
}
|
}
|
||||||
unreachable();
|
unreachable();
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set_current_directory :: proc(path: string) -> (err: Errno) {
|
set_current_directory :: proc(path: string) -> (err: Errno) {
|
||||||
|
|||||||
@@ -448,7 +448,6 @@ get_current_directory :: proc() -> string {
|
|||||||
resize(&buf, len(buf)+page_size);
|
resize(&buf, len(buf)+page_size);
|
||||||
}
|
}
|
||||||
unreachable();
|
unreachable();
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set_current_directory :: proc(path: string) -> (err: Errno) {
|
set_current_directory :: proc(path: string) -> (err: Errno) {
|
||||||
|
|||||||
Reference in new issue
Block a user