Skip to content

Commit

Permalink
format!
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Sep 27, 2023
1 parent 6378d0c commit 29f034f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pubnub/lib/src/crypto/crypto.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CryptorHeader {
List<int> 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;
}

Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit 29f034f

Please sign in to comment.