~mil/fbp

831467736ae4989ea3fe41346b3f8469f0d8b6c7 — Miles Alan 4 months ago c5e7f7b
Remove uneeded variable
1 files changed, 1 insertions(+), 2 deletions(-)

M src/util/utilled.zig
M src/util/utilled.zig => src/util/utilled.zig +1 -2
@@ 8,8 8,7 @@ pub fn set_led(color: enum { Blue, Red, Green }, on: bool) !void {
        .Red => config.files_led_red,
        .Green => config.files_led_green,
    };
    const fp_opt = utilfiles.first_existing_path(files[0..], true, true);
    if (fp_opt) |fp| {
    if (utilfiles.first_existing_path(files[0..], true, true)) |fp| {
        var file = try std.fs.openFileAbsolute(fp, .{ .write = true, .read = true });
        defer file.close();
        _ = try file.write(if (on) "255\n" else "0\n");