Fix misuse of `assert`
This commit is contained in:
parent
e7380b4914
commit
f00c02b631
|
@ -15,7 +15,8 @@ class CommunityPage extends HookWidget {
|
|||
final String instanceUrl;
|
||||
|
||||
CommunityPage({@required String communityName, @required this.instanceUrl})
|
||||
: assert(communityName != null, instanceUrl != null),
|
||||
: assert(communityName != null),
|
||||
assert(instanceUrl != null),
|
||||
_fullCommunityFuture =
|
||||
LemmyApi(instanceUrl).v1.getCommunity(name: communityName),
|
||||
_community = null;
|
||||
|
|
Loading…
Reference in New Issue