performCheck method
Runs the compatibility check.
Implementation
Future<NanoafCheckOutcome> performCheck() async {
final cachedOutcome = await _getCachedOutcome();
if (cachedOutcome != null) {
return cachedOutcome;
}
try {
final outcome = await _performServerCheck();
await _cacheOutcome(outcome);
return outcome;
} catch (e) {
return const NanoafCheckOutcome(
result: NanoafCheckResult.error,
);
}
}