From 3dbae11efa01344aaa79c7be12cbc5a4e3dda6d8 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 11 Dec 2024 14:19:40 +0300 Subject: [PATCH] [#310] client/container: Remove commented code Refs #291. Signed-off-by: Evgenii Stratonikov --- client/container_list_stream.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/container_list_stream.go b/client/container_list_stream.go index 5ae282a..79dd0b4 100644 --- a/client/container_list_stream.go +++ b/client/container_list_stream.go @@ -80,10 +80,6 @@ type ContainerListReader struct { // // Panics if buf has zero length. func (x *ContainerListReader) Read(buf []cid.ID) (int, bool) { - // if len(buf) == 0 { - // panic("empty buffer in ContainerListReader.ReadList") - // } - read := copyCnrIDBuffers(buf, x.tail) x.tail = x.tail[read:]