mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove return after unreachable
This commit is contained in:
@@ -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