Skip to content

Commit

Permalink
fix: analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel committed Aug 12, 2024
1 parent f97552e commit 6aba48f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/cli/lib/central_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,11 @@ class CentralCommand {
SystemsCache systems,
SystemSymbol systemSymbol,
) async {
final jumpGate;
final SystemWaypoint? jumpGate;
try {
jumpGate = systems.jumpGateWaypointForSystem(systemSymbol);
} catch (e) {
print(e);
logger.warn('Failed to find jump gate for $systemSymbol: $e');
return null;
}
if (jumpGate == null) {
Expand Down Expand Up @@ -659,7 +659,7 @@ class CentralCommand {
) ??
false;
final phase = _determineGamePhase(ships, jumpGateComplete: _isGateComplete);
print(phase);
logger.info('$phase');
if (phase != config.gamePhase) {
await db.setGamePhase(phase);
config = await Config.fromDb(db);
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/cache/caches_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void main() {
final agentsApi = _MockAgentsApi();
when(() => api.agents).thenReturn(agentsApi);
final agent = Agent.test();
when(() => db.getMyAgent()).thenAnswer((_) => Future.value(agent));
when(db.getMyAgent).thenAnswer((_) => Future.value(agent));
when(agentsApi.getMyAgent).thenAnswer(
(_) => Future.value(GetMyAgent200Response(data: agent.toOpenApi())),
);
Expand Down

0 comments on commit 6aba48f

Please sign in to comment.