mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +02:00
Add 'const' keyword to Result.ok calls in DebugAuthInterface methods
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ class DebugAuthInterface
|
|||||||
|
|
||||||
_isSignedIn = false;
|
_isSignedIn = false;
|
||||||
|
|
||||||
return Result.ok(null);
|
return const Result.ok(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -42,7 +42,7 @@ class DebugAuthInterface
|
|||||||
}) async {
|
}) async {
|
||||||
final bool alreadyLoggedIn = await isSignedIn;
|
final bool alreadyLoggedIn = await isSignedIn;
|
||||||
|
|
||||||
if (alreadyLoggedIn) return Result.ok(null);
|
if (alreadyLoggedIn) return const Result.ok(null);
|
||||||
|
|
||||||
final credentials = input as Credentials;
|
final credentials = input as Credentials;
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ class DebugAuthInterface
|
|||||||
|
|
||||||
_isSignedIn = true;
|
_isSignedIn = true;
|
||||||
|
|
||||||
return Result.ok(null);
|
return const Result.ok(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -61,7 +61,7 @@ class DebugAuthInterface
|
|||||||
T? input,
|
T? input,
|
||||||
}) async {
|
}) async {
|
||||||
Arcane.log("Re-sending verification code to $input");
|
Arcane.log("Re-sending verification code to $input");
|
||||||
return Result.ok("Code sent");
|
return const Result.ok("Code sent");
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -77,7 +77,7 @@ class DebugAuthInterface
|
|||||||
Arcane.log("Creating account for $email with password $password");
|
Arcane.log("Creating account for $email with password $password");
|
||||||
}
|
}
|
||||||
|
|
||||||
return Result.ok(SignUpStep.confirmSignUp);
|
return const Result.ok(SignUpStep.confirmSignUp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -88,7 +88,7 @@ class DebugAuthInterface
|
|||||||
Arcane.log(
|
Arcane.log(
|
||||||
"Confirming registration for $username with code $confirmationCode",
|
"Confirming registration for $username with code $confirmationCode",
|
||||||
);
|
);
|
||||||
return Result.ok(true);
|
return const Result.ok(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -98,7 +98,7 @@ class DebugAuthInterface
|
|||||||
String? code,
|
String? code,
|
||||||
}) async {
|
}) async {
|
||||||
Arcane.log("Resetting password for $email");
|
Arcane.log("Resetting password for $email");
|
||||||
return Result.ok(true);
|
return const Result.ok(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@@ -25,6 +25,3 @@ dev_dependencies:
|
|||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
mockito: ^5.4.5
|
mockito: ^5.4.5
|
||||||
|
|
||||||
dependency_overrides:
|
|
||||||
analyzer: 7.3.0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user