commit a7a11edd1c765ba96471b032da48d332e0bd5dfb
parent 07662479286fd2a042818452035fe3e70362769c
Author: Alexey Yerin <yyp@disroot.org>
Date: Tue, 20 Apr 2021 21:16:25 +0300
path: remove unnecessary strings::toutf8
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/path/names.ha b/path/names.ha
@@ -61,7 +61,6 @@ export fn extension(p: str) (str, str) = {
if (len(b) == 0 || b[len(b) - 1] == PATHSEP) {
return (p, "");
};
- let b = strings::toutf8(p);
let i = match (bytes::index(b, '.': u32: u8)) {
_: void => return (p, ""),
z: size => z,