Skip to content

Commit

Permalink
correct format code
Browse files Browse the repository at this point in the history
  • Loading branch information
om26er committed Mar 2, 2024
1 parent f9652b0 commit 7fec9f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/src/messages/hello.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "package:wampproto/src/messages/message.dart";

class Hello implements Message {

Hello(this.realm, this.roles, this.authID, this.authMethods);
static const int id = 1;

Expand All @@ -22,7 +21,8 @@ class Hello implements Message {

if (type != Hello.id) {
throw ArgumentError(
"invalid message type: must be ${Hello.id}, was $type",);
"invalid message type: must be ${Hello.id}, was $type",
);
}

final realm = message[1];
Expand Down
4 changes: 3 additions & 1 deletion lib/src/serializers/serializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Message toMessage(List<dynamic> message) {

switch (messageType) {
case Hello.id:
{return Hello.parse(message);}
{
return Hello.parse(message);
}
default:
{
throw "unknown message type";
Expand Down

0 comments on commit 7fec9f1

Please sign in to comment.