mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Fetch.git: replace a toss with discardAll
toss is only valid following a peek.
This commit is contained in:
parent
91a81d3846
commit
2a8751e37f
1 changed files with 1 additions and 1 deletions
|
|
@ -1095,7 +1095,7 @@ pub const Session = struct {
|
|||
.flush => return error.EndOfStream,
|
||||
.data => |data| if (data.len > 1) switch (@as(StreamCode, @enumFromInt(data[0]))) {
|
||||
.pack_data => {
|
||||
input.toss(1);
|
||||
try input.discardAll(1);
|
||||
fs.remaining_len = data.len;
|
||||
break;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue