From 29f034fa29a62e010a62b108a6ce79a09376846b Mon Sep 17 00:00:00 2001 From: Mohit Tejani Date: Wed, 27 Sep 2023 10:48:51 +0530 Subject: [PATCH] format! --- pubnub/lib/src/crypto/crypto.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pubnub/lib/src/crypto/crypto.dart b/pubnub/lib/src/crypto/crypto.dart index 6efe8d07..35e8d53c 100644 --- a/pubnub/lib/src/crypto/crypto.dart +++ b/pubnub/lib/src/crypto/crypto.dart @@ -21,7 +21,7 @@ class CryptorHeader { List sentinel; var version; if (encryptedData.length >= 4) { - sentinel = encryptedData.sublist(0,4).toList(); + sentinel = encryptedData.sublist(0, 4).toList(); if (utf8.decode(sentinel) != SENTINEL) return null; } @@ -79,9 +79,9 @@ class CryptorHeaderV1 { header[pos] = VERSION; pos++; header.setAll(pos, _identifier.codeUnits); - pos+=CryptorHeader.IDENTIFIER_LENGTH; + pos += CryptorHeader.IDENTIFIER_LENGTH; var metadataLength = this.metadataLength; - if (metadataLength < 255){ + if (metadataLength < 255) { header[pos] = metadataLength; } else { header.setAll(pos, [255, metadataLength >> 8, metadataLength & 0xff]);