Skip to content

Commit

Permalink
Dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Feb 15, 2025
1 parent 98190e0 commit a9c85a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/src/commands/avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ final avatar = ChatCommand(
if (showGuildProfile && context.guild != null) {
final targetMember = await context.guild?.members.get(targetUser.id);

return context.respond(MessageBuilder(content: targetMember?.avatar?.url.toString() ?? 'Cannot get member avatar.'));
return context
.respond(MessageBuilder(content: targetMember?.avatar?.url.toString() ?? 'Cannot get member avatar.'));
}

return context.respond(MessageBuilder(content: targetUser.avatar.url.toString()));
Expand Down
4 changes: 2 additions & 2 deletions test/utils_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ void main() {
});
});

group("Utility Functions (New Tests)", () { // Group for the new tests
group("Utility Functions (New Tests)", () {
// Group for the new tests

test('getCurrentMemoryString returns a string with memory usage', () {
final memoryString = getCurrentMemoryString();
Expand All @@ -67,7 +68,6 @@ void main() {
expect(platform, isNotEmpty);
});


test('ToMapExtension converts Iterable<MapEntry> to Map', () {
final entries = [MapEntry('a', 1), MapEntry('b', 2)];
final map = entries.toMap();
Expand Down

0 comments on commit a9c85a9

Please sign in to comment.