authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-29 16:38:40 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-29 16:38:40 -08:00
log273baa521055c2294e6dd374316166aa923c75af
tree4bae43de28f25b8708a4f4d9d1ca59948823fecc
parent7a2ee7e11cbe1b982d5a9f916d3da50619ae68bb

remove unreachable else prong in dep type


1 files changed, 0 insertions(+), 6 deletions(-)

src/util/dep_type.zig-6
...@@ -15,9 +15,6 @@ pub const DepType = enum {...@@ -15,9 +15,6 @@ pub const DepType = enum {
15 _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", rpath, dpath});15 _ = try u.run_cmd(null, &[_][]const u8{"git", "clone", rpath, dpath});
16 },16 },
17 .hg => { _ = try u.run_cmd(null, &[_][]const u8{"hg", "clone", rpath, dpath}); },17 .hg => { _ = try u.run_cmd(null, &[_][]const u8{"hg", "clone", rpath, dpath}); },
18 else => {
19 u.assert(false, "dep type {} not configured for pull: {}", .{@tagName(self), rpath});
20 },
21 }18 }
22 }19 }
2320
...@@ -29,9 +26,6 @@ pub const DepType = enum {...@@ -29,9 +26,6 @@ pub const DepType = enum {
29 _ = try u.run_cmd(dpath, &[_][]const u8{"git", "pull"});26 _ = try u.run_cmd(dpath, &[_][]const u8{"git", "pull"});
30 },27 },
31 .hg => { _ = try u.run_cmd(dpath, &[_][]const u8{"hg", "pull"}); },28 .hg => { _ = try u.run_cmd(dpath, &[_][]const u8{"hg", "pull"}); },
32 else => {
33 u.assert(false, "dep type {} not configured for update: {}", .{@tagName(self), rpath});
34 },
35 }29 }
36 }30 }
37};31};