Skip to content

Commit

Permalink
fix == oprator implementation for CipherKey
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Mar 27, 2024
1 parent 9b2fbe8 commit d145f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubnub/lib/src/core/crypto/cipher_key.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class CipherKey {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (other == null) {
return false;
}
if (runtimeType == other.runtimeType) {
return utf8.decode(data) == utf8.decode(other!.data);
return utf8.decode(data) == utf8.decode((other as CipherKey).data);
}
return false;
}
Expand Down

0 comments on commit d145f55

Please sign in to comment.