diff --git a/src/http/content.cr b/src/http/content.cr index 2f5040d7ba50..2c4be03cb32e 100644 --- a/src/http/content.cr +++ b/src/http/content.cr @@ -73,7 +73,7 @@ module HTTP @io.peek end - def skip(bytes_count) : Int32? + def skip(bytes_count) : Nil ensure_send_continue @io.skip(bytes_count) end @@ -164,7 +164,7 @@ module HTTP peek end - def skip(bytes_count) : Int32? + def skip(bytes_count) : Nil ensure_send_continue if bytes_count <= @chunk_remaining @io.skip(bytes_count) diff --git a/src/io/memory.cr b/src/io/memory.cr index 2d3dbb5256ac..20e4ec0865c9 100644 --- a/src/io/memory.cr +++ b/src/io/memory.cr @@ -192,7 +192,7 @@ class IO::Memory < IO end # :nodoc: - def skip(bytes_count) + def skip(bytes_count) : Nil check_open available = @bytesize - @pos