mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 10:29:06 +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;
|
||||
|
||||
return Result.ok(null);
|
||||
return const Result.ok(null);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -42,7 +42,7 @@ class DebugAuthInterface
|
||||
}) async {
|
||||
final bool alreadyLoggedIn = await isSignedIn;
|
||||
|
||||
if (alreadyLoggedIn) return Result.ok(null);
|
||||
if (alreadyLoggedIn) return const Result.ok(null);
|
||||
|
||||
final credentials = input as Credentials;
|
||||
|
||||
@@ -53,7 +53,7 @@ class DebugAuthInterface
|
||||
|
||||
_isSignedIn = true;
|
||||
|
||||
return Result.ok(null);
|
||||
return const Result.ok(null);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -61,7 +61,7 @@ class DebugAuthInterface
|
||||
T? input,
|
||||
}) async {
|
||||
Arcane.log("Re-sending verification code to $input");
|
||||
return Result.ok("Code sent");
|
||||
return const Result.ok("Code sent");
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -77,7 +77,7 @@ class DebugAuthInterface
|
||||
Arcane.log("Creating account for $email with password $password");
|
||||
}
|
||||
|
||||
return Result.ok(SignUpStep.confirmSignUp);
|
||||
return const Result.ok(SignUpStep.confirmSignUp);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -88,7 +88,7 @@ class DebugAuthInterface
|
||||
Arcane.log(
|
||||
"Confirming registration for $username with code $confirmationCode",
|
||||
);
|
||||
return Result.ok(true);
|
||||
return const Result.ok(true);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -98,7 +98,7 @@ class DebugAuthInterface
|
||||
String? code,
|
||||
}) async {
|
||||
Arcane.log("Resetting password for $email");
|
||||
return Result.ok(true);
|
||||
return const Result.ok(true);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user