Skip to content

Commit 7fec9f1

Browse files
committed
correct format code
1 parent f9652b0 commit 7fec9f1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/src/messages/hello.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import "package:wampproto/src/messages/message.dart";
22

33
class Hello implements Message {
4-
54
Hello(this.realm, this.roles, this.authID, this.authMethods);
65
static const int id = 1;
76

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

2322
if (type != Hello.id) {
2423
throw ArgumentError(
25-
"invalid message type: must be ${Hello.id}, was $type",);
24+
"invalid message type: must be ${Hello.id}, was $type",
25+
);
2626
}
2727

2828
final realm = message[1];

lib/src/serializers/serializer.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Message toMessage(List<dynamic> message) {
1212

1313
switch (messageType) {
1414
case Hello.id:
15-
{return Hello.parse(message);}
15+
{
16+
return Hello.parse(message);
17+
}
1618
default:
1719
{
1820
throw "unknown message type";

0 commit comments

Comments
 (0)