Skip to content

Commit

Permalink
Make it const
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Oct 25, 2023
1 parent 98fd05e commit 6512cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protobuf/lib/src/protobuf/coded_buffer_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class CodedBufferReader {
final length = readInt32();
final stringPos = _bufferPos;
_checkLimit(length);
return Utf8Decoder(allowMalformed: true)
return const Utf8Decoder(allowMalformed: true)
.convert(_buffer, stringPos, stringPos + length);
}

Expand Down

0 comments on commit 6512cf0

Please sign in to comment.