Skip to content

Commit

Permalink
fix: Dart analyze issue and run dart formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaram-kalluri committed Dec 7, 2023
1 parent 57570b2 commit ca79ebf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/at_commons/lib/at_commons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ export 'package:at_commons/src/verb/enroll_params.dart';
export 'package:at_commons/src/enroll/enrollment.dart';
@experimental
export 'package:at_commons/src/telemetry/at_telemetry.dart';
export 'package:at_commons/src/utils/string_utils.dart';
export 'package:at_commons/src/utils/string_utils.dart';
4 changes: 2 additions & 2 deletions packages/at_commons/lib/src/keystore/at_key_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class KeyUtil {
// 3. phone.buzz <pref namespace>Pref namespace
static AtKey setNamespace(AtKey atKey) {
// If key is fully qualified, remove the '@' and return the atKey.
if (KeyUtil.isFullyQualified(atKey.key!)) {
atKey.key = KeyUtil.getQualified(atKey.key!);
if (KeyUtil.isFullyQualified(atKey.key)) {
atKey.key = KeyUtil.getQualified(atKey.key);
return atKey;
}
// If key does not have any namespace, append the namespace to the key.
Expand Down
4 changes: 1 addition & 3 deletions packages/at_commons/lib/src/verb/abstract_verb_builder.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:at_commons/at_builders.dart';
import 'package:at_commons/at_commons.dart';
import 'package:at_commons/src/utils/string_utils.dart';

/// An abstract class implementing the [VerbBuilder].
/// Class contains the implementation for validating the key data and building
Expand Down Expand Up @@ -34,8 +33,7 @@ abstract class AbstractVerbBuilder implements VerbBuilder {
throw InvalidAtKeyException(
'When isLocal is set to true, cannot set isPublic to true or set a non-null sharedWith');
}
if (atKey.metadata.isPublic == true &&
atKey.sharedWith.isNotNullOrEmpty) {
if (atKey.metadata.isPublic == true && atKey.sharedWith.isNotNullOrEmpty) {
throw InvalidAtKeyException(
'When isPublic is set to true, sharedWith cannot be populated');
}
Expand Down
1 change: 0 additions & 1 deletion packages/at_commons/lib/src/verb/delete_verb_builder.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:at_commons/at_commons.dart';
import 'package:at_commons/src/utils/string_utils.dart';
import 'package:at_commons/src/verb/abstract_verb_builder.dart';

/// Delete verb builder generates a command to delete a [atKey] from the secondary server.
Expand Down
3 changes: 2 additions & 1 deletion packages/at_commons/lib/src/verb/update_verb_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ class UpdateVerbBuilder extends AbstractVerbBuilder {
atKey.metadata.ttr == other.atKey.metadata.ttr &&
atKey.metadata.ccd == other.atKey.metadata.ccd &&
atKey.metadata.dataSignature == other.atKey.metadata.dataSignature &&
atKey.metadata.sharedKeyStatus == other.atKey.metadata.sharedKeyStatus &&
atKey.metadata.sharedKeyStatus ==
other.atKey.metadata.sharedKeyStatus &&
atKey.metadata.sharedKeyEnc == other.atKey.metadata.sharedKeyEnc &&
atKey.metadata.pubKeyCS == other.atKey.metadata.pubKeyCS &&
atKey.metadata.encoding == other.atKey.metadata.encoding &&
Expand Down

0 comments on commit ca79ebf

Please sign in to comment.