Skip to content

Commit af7cbbd

Browse files
committed
Fixes
1 parent 0369bc5 commit af7cbbd

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎vrchat_dart/lib/src/api/src/auth_api.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class AuthApi {
7373
if (failure != null) return (null, failure);
7474

7575
// Call the login function to set the [currentUser]
76-
return login();
76+
return await login();
7777
}
7878

7979
/// Logout

‎vrchat_dart/tool/fix_raw_string_escapes.dart‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ void main() {
1919

2020
String fixRawStringEscapes(String source) {
2121
return source.replaceAllMapped(RegExp(r"r'((?:[^'\\]|\\.)*)'"), (match) {
22-
final inner = match[1]!;
23-
if (!inner.contains(r"\'")) return match[0]!;
22+
final inner = match[1];
23+
final full = match[0];
24+
if (inner == null || full == null) {
25+
throw StateError('This should never happen');
26+
}
27+
if (!inner.contains(r"\'")) return full;
2428

2529
final unescaped = inner.replaceAll(r"\'", "'");
2630
if (!unescaped.contains('"')) {

0 commit comments

Comments
 (0)