Skip to content

Commit

Permalink
Action sbt scalafmtAll
Browse files Browse the repository at this point in the history
  • Loading branch information
takapi327 committed Feb 2, 2025
1 parent 2a48f15 commit 4e55bee
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ object ResultSetRowPacket:
private def decodeResultSetRow(fieldLength: Int, columnLength: Int): Decoder[ResultSetRowPacket] =
new Decoder[ResultSetRowPacket]:
override def decode(bits: BitVector): Attempt[DecodeResult[ResultSetRowPacket]] =
val buffer = new Array[Option[String]](columnLength)
var remainingFields = columnLength
var remainder = bits
val buffer = new Array[Option[String]](columnLength)
var remainingFields = columnLength
var remainder = bits
while remainingFields >= 1 do
val index = columnLength - remainingFields
if fieldLength == NULL && index == 0 then buffer.update(index, None)
Expand Down Expand Up @@ -104,4 +104,4 @@ object ResultSetRowPacket:
status match
case EOFPacket.STATUS => EOFPacket.decoder(capabilityFlags).decode(postLengthBits)
case ERRPacket.STATUS => ERRPacket.decoder(capabilityFlags).decode(postLengthBits)
case fieldLength => decodeResultSetRow(fieldLength, columnLength).decode(postLengthBits)
case fieldLength => decodeResultSetRow(fieldLength, columnLength).decode(postLengthBits)

0 comments on commit 4e55bee

Please sign in to comment.