opt: more linter (#1765)

* opt: more linter

* fix [skip ci]

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

---------

Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2025-12-07 23:46:42 +08:00
committed by GitHub
parent 3787f99d35
commit 773bdafec3
22 changed files with 55 additions and 49 deletions

View File

@@ -164,8 +164,9 @@ class GrpcReq {
int? code;
String msg = response.headers.value('Grpc-Status-Details-Bin') ?? '';
if (msg.isNotEmpty) {
while (msg.length % 4 != 0) {
msg += '=';
final padding = -msg.length & 3;
if (padding != 0) {
msg += '=' * padding;
}
final msgBytes = base64Decode(msg);
try {