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:
2026-05-13 14:20:16 +02:00
parent 30b578708b
commit 3ffaacc11a
2 changed files with 7 additions and 10 deletions
@@ -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
-3
View File
@@ -25,6 +25,3 @@ dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^5.4.5
dependency_overrides:
analyzer: 7.3.0