Skip to content

Commit fbf6ed4

Browse files
committed
Make SemanticdbInputStream indent rewrittable
1 parent 6b10e1d commit fbf6ed4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

compiler/src/dotty/tools/dotc/semanticdb/internal/SemanticdbInputStream.scala

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -364,17 +364,13 @@ class SemanticdbInputStream private (buffer: Array[Byte], input: InputStream) {
364364
var pos: Int = bufferPos
365365
var i: Int = 0
366366
while (i < 10) {
367-
{
368-
if (buffer(({
369-
pos += 1; pos - 1
370-
})) >= 0) {
371-
bufferPos = pos
372-
return
373-
}
367+
if (buffer(({
368+
pos += 1; pos - 1
369+
})) >= 0) {
370+
bufferPos = pos
371+
return
374372
}
375-
({
376-
i += 1; i - 1
377-
})
373+
i += 1; i - 1
378374
}
379375
}
380376
skipRawVarintSlowPath

0 commit comments

Comments
 (0)