Skip to content

Commit 0463c07

Browse files
committed
package: remove ignored error
This error type is ignored during tar unpacking.
1 parent a69c446 commit 0463c07

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

Diff for: src/Package/Fetch.zig

-7
Original file line numberDiff line numberDiff line change
@@ -1204,13 +1204,6 @@ fn checkUnpackErrors(f: *Fetch, unpack: *Unpack) RunError!void {
12041204
}),
12051205
}));
12061206
},
1207-
.unsupported_file_type => |info| {
1208-
eb.extra.items[note_i] = @intFromEnum(try eb.addErrorMessage(.{
1209-
.msg = try eb.printString("file '{s}' has unsupported type '{c}'", .{
1210-
info.file_name, info.file_type,
1211-
}),
1212-
}));
1213-
},
12141207
}
12151208
}
12161209

Diff for: src/Package/Unpack.zig

-7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ pub const Error = union(enum) {
1818
code: anyerror,
1919
file_name: []const u8,
2020
},
21-
unsupported_file_type: struct {
22-
file_name: []const u8,
23-
file_type: u8,
24-
},
2521
};
2622

2723
pub fn init(allocator: std.mem.Allocator, root: fs.Dir) Self {
@@ -41,9 +37,6 @@ pub fn deinit(self: *Self) void {
4137
.unable_to_create_file => |info| {
4238
self.allocator.free(info.file_name);
4339
},
44-
.unsupported_file_type => |info| {
45-
self.allocator.free(info.file_name);
46-
},
4740
}
4841
}
4942
self.errors.deinit(self.allocator);

0 commit comments

Comments
 (0)