From f05ee71976a0d85ab34db80eb06840168158866b Mon Sep 17 00:00:00 2001 From: Szymon Uglis Date: Sun, 23 Jan 2022 17:45:56 +0100 Subject: [PATCH] Fix formatting --- lib/src/core/guild/guild.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/core/guild/guild.dart b/lib/src/core/guild/guild.dart index 295975e92..8ad9f387c 100644 --- a/lib/src/core/guild/guild.dart +++ b/lib/src/core/guild/guild.dart @@ -479,9 +479,10 @@ class Guild extends SnowflakeEntity implements IGuild { final shardId = (id.id >> 22) % (client as NyxxWebsocket).shardManager.shards.length; return (client as NyxxWebsocket).shardManager.shards.firstWhere( - (element) => element.id == shardId, - orElse: () => throw InvalidShardException('Cannot find shard for this guild! Calculated shard id for this guild is: $shardId but no such shard exist'), - ); + (element) => element.id == shardId, + orElse: () => + throw InvalidShardException('Cannot find shard for this guild! Calculated shard id for this guild is: $shardId but no such shard exist'), + ); } /// Creates an instance of [Guild]