commit 403b0aaf874ed79e102c51b9d2c479201c3765bd
parent f05fddee26058092a98f63013633b7e60747fb00
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 5 May 2022 17:35:04 -0400
hare::module: style
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/hare/module/scan.ha b/hare/module/scan.ha
@@ -199,10 +199,8 @@ fn scan_directory(
let parsed = parse_name(name);
let base = parsed.0, tags = parsed.2;
- let d = strings::toutf8(name);
- if (len(d) == 0 || (
- !strings::hasprefix(name, "+") &&
- !strings::hasprefix(name, "-"))) {
+ if (!strings::hasprefix(name, "+")
+ && !strings::hasprefix(name, "-")) {
if (!strings::hasprefix(name, ".")) {
append(ver.subdirs, strings::dup(name));
};