mirror of
https://github.com/slackhq/nebula.git
synced 2026-08-15 08:27:01 +02:00
5c0a5ee4be
Write took &buf[0] before calling writeWithScratch, so the len==0 guard in the helper could never run -- a zero-length buffer panicked on the index instead of returning. Hoist the guard above the indexing and fold writeWithScratch into Write since it was the only caller and duplicated the iovec setup. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>