Skip to content

Commit 721a028

Browse files
committed
format: style
1 parent 5e9974b commit 721a028

File tree

2 files changed

+77
-37
lines changed

2 files changed

+77
-37
lines changed

coverage/lcov.info

Lines changed: 71 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,84 @@
11
SF:lib/src/ht_auth_inmemory.dart
2-
DA:16,1
3-
DA:20,2
4-
DA:21,2
5-
DA:22,1
6-
DA:23,0
7-
DA:42,0
8-
DA:43,0
2+
DA:18,1
3+
DA:19,2
4+
DA:20,1
5+
DA:21,1
6+
DA:23,2
7+
DA:24,2
8+
DA:25,1
9+
DA:26,0
10+
DA:27,0
11+
DA:29,1
12+
DA:47,0
913
DA:49,0
10-
DA:51,0
11-
DA:53,0
12-
DA:56,0
14+
DA:50,0
15+
DA:57,0
1316
DA:58,0
14-
DA:62,0
15-
DA:63,0
17+
DA:59,0
18+
DA:61,0
19+
DA:64,0
1620
DA:66,0
21+
DA:67,0
22+
DA:68,0
1723
DA:69,0
1824
DA:72,0
1925
DA:77,0
20-
DA:78,0
21-
DA:82,0
22-
DA:83,0
23-
DA:84,0
24-
DA:85,0
25-
DA:86,0
26+
DA:79,0
27+
DA:80,0
28+
DA:87,0
2629
DA:88,0
27-
DA:89,0
28-
DA:92,0
29-
DA:94,0
30-
DA:95,0
3130
DA:98,0
3231
DA:99,0
33-
DA:100,0
34-
DA:102,0
32+
DA:101,0
3533
DA:103,0
36-
DA:106,0
37-
DA:108,0
34+
DA:104,0
35+
DA:105,0
3836
DA:109,0
39-
DA:110,0
40-
DA:111,0
41-
DA:113,0
42-
LF:40
43-
LH:4
37+
DA:115,0
38+
DA:119,0
39+
DA:120,0
40+
DA:127,0
41+
DA:128,0
42+
DA:135,0
43+
DA:136,0
44+
DA:138,0
45+
DA:144,0
46+
DA:145,0
47+
DA:147,0
48+
DA:151,0
49+
DA:152,0
50+
DA:153,0
51+
DA:154,0
52+
DA:158,0
53+
DA:159,0
54+
DA:160,0
55+
DA:162,0
56+
DA:163,0
57+
DA:165,0
58+
DA:166,0
59+
DA:167,0
60+
DA:170,0
61+
DA:172,0
62+
DA:173,0
63+
DA:174,0
64+
DA:175,0
65+
DA:176,0
66+
DA:178,0
67+
DA:179,0
68+
DA:181,0
69+
DA:182,0
70+
DA:183,0
71+
DA:186,0
72+
DA:188,0
73+
DA:189,0
74+
DA:190,0
75+
DA:191,0
76+
DA:192,0
77+
DA:194,0
78+
DA:195,0
79+
DA:197,0
80+
DA:198,0
81+
DA:199,0
82+
LF:80
83+
LH:8
4484
end_of_record

lib/src/ht_auth_inmemory.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ class HtAuthInmemory implements HtAuthClient {
7474
String email, {
7575
bool isDashboardLogin = false,
7676
}) async {
77-
print('DEBUG: HtAuthInmemory requestSignInCode called for email: $email, '
78-
'isDashboardLogin: $isDashboardLogin');
77+
print(
78+
'DEBUG: HtAuthInmemory requestSignInCode called for email: $email, '
79+
'isDashboardLogin: $isDashboardLogin',
80+
);
7981
if (!email.contains('@') || !email.contains('.')) {
8082
print(
8183
'DEBUG: HtAuthInmemory Invalid email format for $email. Throwing '
@@ -144,9 +146,7 @@ class HtAuthInmemory implements HtAuthClient {
144146
final user = User(
145147
id: _uuid.v4(),
146148
email: email,
147-
roles: [
148-
isDashboardLogin ? UserRoles.admin : UserRoles.standardUser,
149-
],
149+
roles: [if (isDashboardLogin) UserRoles.admin else UserRoles.standardUser],
150150
);
151151
_currentUser = user;
152152
_currentToken = _uuid.v4(); // Generate a new token
@@ -170,7 +170,7 @@ class HtAuthInmemory implements HtAuthClient {
170170
@override
171171
Future<AuthSuccessResponse> signInAnonymously() async {
172172
print('DEBUG: HtAuthInmemory signInAnonymously called.');
173-
final user = User(id: _uuid.v4(), roles: [UserRoles.guestUser]);
173+
final user = User(id: _uuid.v4(), roles: const [UserRoles.guestUser]);
174174
_currentUser = user;
175175
_currentToken = _uuid.v4(); // Generate a new token
176176
_authStateController.add(_currentUser);

0 commit comments

Comments
 (0)