From e0350859bb88d70b95a6b99932a9a5452f8b6b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Anic=CC=81?= Date: Thu, 11 Apr 2024 17:47:36 +0200 Subject: [PATCH] use unreachable keyword for unreachable code path --- src/Package/Fetch.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Package/Fetch.zig b/src/Package/Fetch.zig index 6c5a930285..f6e5c2e222 100644 --- a/src/Package/Fetch.zig +++ b/src/Package/Fetch.zig @@ -1189,7 +1189,7 @@ fn unpackTarball(f: *Fetch, out_dir: fs.Dir, reader: anytype) RunError!UnpackRes .unable_to_create_file => |i| res.unableToCreateFile(stripRoot(i.file_name, res.root_dir), i.code), .unable_to_create_sym_link => |i| res.unableToCreateSymLink(stripRoot(i.file_name, res.root_dir), i.link_name, i.code), .unsupported_file_type => |i| res.unsupportedFileType(stripRoot(i.file_name, res.root_dir), @intFromEnum(i.file_type)), - .components_outside_stripped_prefix => {}, // impossible with strip_components = 0 + .components_outside_stripped_prefix => unreachable, // unreachable with strip_components = 0 } } }