Fix missing pattern patch case for when we have zero headers (#1242)

This commit is contained in:
Chris Stewart 2020-03-15 20:04:52 -05:00 committed by GitHub
parent 3e618ec1f6
commit 3f5244e390

View file

@ -198,6 +198,7 @@ trait GetHeadersMessage extends DataPayload {
val count = hashCount.toInt
// only display first hash, otherwise this gets really long
val hashesStr = hashes match {
case Nil => "empty"
case head +: Nil => head.toString
case head +: _ => s"$head, ..."
}