authorgravatar for igor.anic@gmail.comIgor Anić <igor.anic@gmail.com> 2024-04-11 17:47:36+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-03 12:12:53-07:00
loge0350859bb88d70b95a6b99932a9a5452f8b6b14
tree43489a03b2b4a6bf1dd2cd714237c740f3a0a4b1
parent035c1b65229083e01bc5ec69f2ad529ba0c56062

use unreachable keyword for unreachable code path


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

src/Package/Fetch.zig+1-1
......@@ -1189,7 +1189,7 @@ fn unpackTarball(f: *Fetch, out_dir: fs.Dir, reader: anytype) RunError!UnpackRes
11891189 .unable_to_create_file => |i| res.unableToCreateFile(stripRoot(i.file_name, res.root_dir), i.code),
11901190 .unable_to_create_sym_link => |i| res.unableToCreateSymLink(stripRoot(i.file_name, res.root_dir), i.link_name, i.code),
11911191 .unsupported_file_type => |i| res.unsupportedFileType(stripRoot(i.file_name, res.root_dir), @intFromEnum(i.file_type)),
1192 .components_outside_stripped_prefix => {}, // impossible with strip_components = 0
1192 .components_outside_stripped_prefix => unreachable, // unreachable with strip_components = 0
11931193 }
11941194 }
11951195 }