From d13c4f77da66a53222905cad41654a1e42e590fc Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 23 Apr 2024 12:45:48 -0500 Subject: [PATCH] reduce whitespace --- pkgs/oizys/oizys-zig/src/Oizys.zig | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/pkgs/oizys/oizys-zig/src/Oizys.zig b/pkgs/oizys/oizys-zig/src/Oizys.zig index 958e640..f68fbd6 100644 --- a/pkgs/oizys/oizys-zig/src/Oizys.zig +++ b/pkgs/oizys/oizys-zig/src/Oizys.zig @@ -119,24 +119,14 @@ pub fn cache(self: *Oizys) !void { pub fn run(self: *Oizys) !void { switch (self.cmd) { - .@"switch" => { - try self.runNixCmd(NixCmd.NixosRebuild, &.{ "switch", "--flake", self.flake }); - }, - .boot => { - try self.runNixCmd(NixCmd.NixosRebuild, &.{ "boot", "--flake", self.flake }); - }, - .dry => { - try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output, "--dry-run" }); - }, - .build => { - try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output }); - }, + .@"switch" => try self.runNixCmd(NixCmd.NixosRebuild, &.{ "switch", "--flake", self.flake }), + .boot => try self.runNixCmd(NixCmd.NixosRebuild, &.{ "boot", "--flake", self.flake }), + .dry => try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output, "--dry-run" }), + .build => try self.runNixCmd(NixCmd.Nix, &.{ "build", self.output }), .output => { const stdout = std.io.getStdOut().writer(); try stdout.print("{s}\n", .{self.output}); }, - .cache => { - try self.cache(); - }, + .cache => try self.cache(), } }