mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
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:
committed by
GitHub
parent
3787f99d35
commit
773bdafec3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user